add test comments

This commit is contained in:
Sina Mahmoodi 2024-08-19 18:04:30 +02:00
parent edf9e376ed
commit e7bac205a7

View file

@ -2007,6 +2007,23 @@ func TestSimulateV1(t *testing.T) {
blocks: []simBlock{{ blocks: []simBlock{{
StateOverrides: &StateOverride{ StateOverrides: &StateOverride{
randomAccounts[2].addr: { 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"), Code: hex2Bytes("3a489060005260205260406000f3"),
}, },
}, },
@ -2098,6 +2115,23 @@ func TestSimulateV1(t *testing.T) {
blocks: []simBlock{{ blocks: []simBlock{{
StateOverrides: &StateOverride{ StateOverrides: &StateOverride{
randomAccounts[2].addr: { 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"), Code: hex2Bytes("3a489060005260205260406000f3"),
}, },
}, },