From 3e61f06a1d2012785c65f1708620cf399857ac8d Mon Sep 17 00:00:00 2001 From: Robin Salen <30937548+Nashtare@users.noreply.github.com> Date: Mon, 8 Jan 2024 10:49:28 +0100 Subject: [PATCH] Remove gas check in sys_stop (#1448) --- evm/src/cpu/kernel/asm/core/terminate.asm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/evm/src/cpu/kernel/asm/core/terminate.asm b/evm/src/cpu/kernel/asm/core/terminate.asm index 0c5d5a8f..d2c16b51 100644 --- a/evm/src/cpu/kernel/asm/core/terminate.asm +++ b/evm/src/cpu/kernel/asm/core/terminate.asm @@ -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