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
[BREAKING] client-sdk: Fix ETH address format for test accounts #1352
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1352 +/- ##
=======================================
Coverage 56.14% 56.14%
=======================================
Files 120 120
Lines 8522 8522
=======================================
Hits 4785 4785
Misses 3700 3700
Partials 37 37
|
@@ -58,7 +58,11 @@ func ResolveAddress(net *config.Network, address string) (*types.Address, *ethCo | |||
case addressExplicitTest: | |||
// Test key. | |||
if testKey, ok := testing.TestAccounts[data]; ok { | |||
return &testKey.Address, &testKey.EthAddress, nil |
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.
what's in testKey.EthAddress if it's not secp256k1eth?
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.
oh it's all zeroed out
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.
should we just make the test key struct have a *ethCommon.Address instead then?
what's the codepath that leads to this in the cli though? |
ab10199
to
44915f4
Compare
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.
thanks
I cleaned this and use |
44915f4
to
8218476
Compare
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.
oh thanks
Fix ETH address handling for non-secp256k1 test accounts.
Fixes oasisprotocol/cli#63