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

AA-446: Separate 'nonce' into two 256-bit values 'nonceKey' and 'nonceSequence' #2

Merged
merged 4 commits into from
Oct 21, 2024

Conversation

forshtat
Copy link
Contributor

No description provided.


// Load nonce from storage
nonce := or(shl(64, key), sload(keccak256(0x04, 0x30)))
nonce := sload(keccak256(0x00, 0x34))
Copy link
Contributor

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.
Copy link
Contributor

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)
Copy link
Contributor

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

@forshtat forshtat merged commit b38a294 into master Oct 21, 2024
2 checks passed
@forshtat forshtat deleted the AA-446-separate-nonce-key-seq branch October 21, 2024 12:47
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