-
Notifications
You must be signed in to change notification settings - Fork 0
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
AA-446: Separate 'nonce' into two 256-bit values 'nonceKey' and 'nonceSequence' #2
Conversation
|
||
// Load nonce from storage | ||
nonce := or(shl(64, key), sload(keccak256(0x04, 0x30))) | ||
nonce := sload(keccak256(0x00, 0x34)) |
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.
nonce -> nonceSeq
@@ -26,22 +33,21 @@ contract NonceManager { | |||
/// @return nonce a full nonce to pass for next transaction with given sender and key. |
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.
Fix comment
|
||
// Calculate storage slot and load current nonce | ||
let nonceSlot := keccak256(0x04, 0x30) | ||
let nonceSlot := keccak256(0x00, 0x34) |
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.
Fix name, either nonceKey or nonceSeq
No description provided.