Fix sys_blockhash (#1285)

This commit is contained in:
Hamy Ratoanina 2023-10-11 16:23:09 +02:00 committed by GitHub
parent 2aeecc3dd8
commit 49ca63ee0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,6 +241,8 @@ global sys_blockhash:
SWAP1
// stack: block_number, kexit_info
%blockhash
// stack: blockhash, kexit_info
SWAP1
EXIT_KERNEL
global blockhash:
@ -262,7 +264,6 @@ global blockhash:
// stack: block_hash_number, retdest
%mload_kernel(@SEGMENT_BLOCK_HASHES)
SWAP1 JUMP
JUMP
%macro blockhash
// stack: block_number