Skip to content

Commit

Permalink
Fix sys_blockhash
Browse files Browse the repository at this point in the history
  • Loading branch information
hratoanina committed Oct 10, 2023
1 parent b4203c3 commit 5d0330b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion evm/src/cpu/kernel/asm/memory/metadata.asm
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ global sys_blockhash:
SWAP1
// stack: block_number, kexit_info
%blockhash
// stack: blockhash, kexit_info
SWAP1
EXIT_KERNEL

global blockhash:
Expand All @@ -262,7 +264,6 @@ global blockhash:
// stack: block_hash_number, retdest
%mload_kernel(@SEGMENT_BLOCK_HASHES)
SWAP1 JUMP
JUMP

%macro blockhash
// stack: block_number
Expand Down

0 comments on commit 5d0330b

Please sign in to comment.