Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: document Address conversion functions #16322

Closed

Conversation

asymmetric
Copy link
Contributor

The documentation is especially supposed to clarify which function users
should call to convert a string containing an address into an Address
struct.

The documentation is especially supposed to clarify which function users
should call to convert a string containing an address into an Address
struct.
@karalabe
Copy link
Member

Thanks for these. We've been hit a few times with people using the conversion methods wrong. My suggestion would be to completely remove common.StringToAddress. It just doesn't make any sense to have this in an API and it's just confusing for everyone. Would you be interested in expanding this PR to drop it fully?

@karalabe karalabe added this to the 1.8.3 milestone Mar 16, 2018
@asymmetric
Copy link
Contributor Author

common.StringToAddress seems to be used in a couple of places to produce "stub" addresses.

What would be a reasonable alternative hex address? Something like this? Or a more obviously bogus one, e.g. 0xdeadbeef?

@karalabe karalabe modified the milestones: 1.8.3, 1.8.4 Mar 27, 2018
@fjl
Copy link
Contributor

fjl commented Apr 3, 2018

Superseded by #16436

@fjl fjl closed this Apr 3, 2018
@asymmetric asymmetric deleted the asymmetric/doc-address branch April 3, 2018 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants