From e7bac205a7addf0ce7772fc0be7e91f66f56d54e Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Mon, 19 Aug 2024 18:04:30 +0200 Subject: [PATCH] add test comments --- internal/ethapi/api_test.go | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/internal/ethapi/api_test.go b/internal/ethapi/api_test.go index 53620bf29d..4e31aacfc6 100644 --- a/internal/ethapi/api_test.go +++ b/internal/ethapi/api_test.go @@ -2007,6 +2007,23 @@ func TestSimulateV1(t *testing.T) { blocks: []simBlock{{ StateOverrides: &StateOverride{ randomAccounts[2].addr: { + // Yul code: + // object "Test" { + // code { + // // Get the gas price from the transaction + // let gasPrice := gasprice() + // + // // Get the base fee from the block + // let baseFee := basefee() + // + // // Store gasPrice and baseFee in memory + // mstore(0x0, gasPrice) + // mstore(0x20, baseFee) + // + // // Return the data + // return(0x0, 0x40) + // } + // } Code: hex2Bytes("3a489060005260205260406000f3"), }, }, @@ -2098,6 +2115,23 @@ func TestSimulateV1(t *testing.T) { blocks: []simBlock{{ StateOverrides: &StateOverride{ randomAccounts[2].addr: { + // Yul code: + // object "Test" { + // code { + // // Get the gas price from the transaction + // let gasPrice := gasprice() + // + // // Get the base fee from the block + // let baseFee := basefee() + // + // // Store gasPrice and baseFee in memory + // mstore(0x0, gasPrice) + // mstore(0x20, baseFee) + // + // // Return the data + // return(0x0, 0x40) + // } + // } Code: hex2Bytes("3a489060005260205260406000f3"), }, },