From 74b1fd25e6fef011314674afe110f213a6bd3416 Mon Sep 17 00:00:00 2001 From: Daniel Lubarov Date: Fri, 12 Aug 2022 17:37:00 -0700 Subject: [PATCH] TODOs --- evm/src/cpu/kernel/asm/core/terminate.asm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/evm/src/cpu/kernel/asm/core/terminate.asm b/evm/src/cpu/kernel/asm/core/terminate.asm index 270a6c90..7aff0e43 100644 --- a/evm/src/cpu/kernel/asm/core/terminate.asm +++ b/evm/src/cpu/kernel/asm/core/terminate.asm @@ -3,21 +3,24 @@ global stop: // TODO: Set parent context's CTX_METADATA_RETURNDATA_SIZE to 0. + // TODO: Refund unused gas to parent. %jump(terminate_common) global return: // TODO: Set parent context's CTX_METADATA_RETURNDATA_SIZE. // TODO: Copy returned memory to parent context's RETURNDATA (but not if we're returning from a constructor?) // TODO: Copy returned memory to parent context's memory (as specified in their call instruction) + // TODO: Refund unused gas to parent. %jump(terminate_common) global selfdestruct: %consume_gas_const(@GAS_SELFDESTRUCT) - // TODO + // TODO: Destroy account. + // TODO: Refund unused gas to parent. %jump(terminate_common) global revert: - // TODO + // TODO: Refund unused gas to parent. %jump(terminate_common) // The execution is in an exceptional halt-ing state if