-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix addr alignment in witness #366
Conversation
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
e669957
to
dace7a3
Compare
@@ -244,7 +244,7 @@ type branchAccessKey struct { | |||
|
|||
func newBranchAccessKey(addr []byte, treeIndex uint256.Int) branchAccessKey { | |||
var sk branchAccessKey | |||
copy(sk.addr[:], addr) | |||
copy(sk.addr[20-len(addr):], addr) |
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 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.
lgtm
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 have overthought it way too much, LGTM. Let's not merge it until we are ready to relaunch the testnet.
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
This PR fixes a problem in EXTCODESIZE when the slot value had a value <20 bytes.