mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 08:13:11 +00:00
Remove gas check in sys_stop (#1448)
This commit is contained in:
parent
f46cf4ef68
commit
3e61f06a1d
@ -6,10 +6,6 @@ global sys_stop:
|
||||
// Set the parent context's return data size to 0.
|
||||
%mstore_parent_context_metadata(@CTX_METADATA_RETURNDATA_SIZE, 0)
|
||||
|
||||
// This makes sure the gas used hasn't overflowed the gaslimit.
|
||||
// This could happen when executing a native instruction (i.e. not a syscall).
|
||||
%charge_gas_const(0)
|
||||
|
||||
%leftover_gas
|
||||
// stack: leftover_gas
|
||||
PUSH 1 // success
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user