mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 23:33:07 +00:00
Use address macro instead of opcode
This commit is contained in:
parent
84151f083c
commit
f3d4e57aa6
@ -1,6 +1,6 @@
|
|||||||
// Return a pointer to the current account's data in the state trie.
|
// Return a pointer to the current account's data in the state trie.
|
||||||
%macro current_account_data
|
%macro current_account_data
|
||||||
ADDRESS %mpt_read_state_trie
|
%address %mpt_read_state_trie
|
||||||
// stack: account_ptr
|
// stack: account_ptr
|
||||||
// account_ptr should be non-null as long as the prover provided the proper
|
// account_ptr should be non-null as long as the prover provided the proper
|
||||||
// Merkle data. But a bad prover may not have, and we don't want return a
|
// Merkle data. But a bad prover may not have, and we don't want return a
|
||||||
|
|||||||
@ -39,6 +39,6 @@ after_storage_insert:
|
|||||||
// stack: new_account_ptr, retdest
|
// stack: new_account_ptr, retdest
|
||||||
|
|
||||||
// Save this updated account to the state trie.
|
// Save this updated account to the state trie.
|
||||||
ADDRESS %addr_to_state_key
|
%address %addr_to_state_key
|
||||||
// stack: state_key, new_account_ptr, retdest
|
// stack: state_key, new_account_ptr, retdest
|
||||||
%jump(mpt_insert_state_trie)
|
%jump(mpt_insert_state_trie)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user