-
Notifications
You must be signed in to change notification settings - Fork 66
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
add prefix to user address when processing flow.json #1331
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1331 +/- ##
==========================================
- Coverage 40.24% 40.16% -0.08%
==========================================
Files 40 40
Lines 2152 2156 +4
==========================================
Hits 866 866
- Misses 1189 1193 +4
Partials 97 97
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a Go SDK utility to do this. I think it's HexToAddress
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think address has a Hex method that will do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a heads up, this file is getting close to needing some tests
@bthaile looks like lint step didn't pass |
#1335 |
|
Hex() does not include "0x" that I see, maybe it's how I'm printing out the string fmt.Println or fmt.Sprintf doesn't print out a leading "0x". I changed to use BytesToAddress to create a flow.Address |
@bthaile Can you create an issue in Go SDK if there is no method available for what you need so it's available in the future for others? You can also also make the PR to the Go SDK so we are avoiding hardcoding. |
flow-go-sdk, added issue and PR. Any other blockers on this PR? This PR won't need to use the new convenience method for the PR I just created. |
nope |
add unit test file for flix, upgrade to v1.0.2
Closes: #1330
Description
add prefix to user address when processing flow.json
For contributor use:
master
branchFiles changed
in the Github PR explorer