From 054bee464d37af39571089862736756e1a0726d3 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 5 May 2025 19:54:48 +0800 Subject: [PATCH] cleanup --- eth/tracers/api_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eth/tracers/api_test.go b/eth/tracers/api_test.go index 0442ba821e..d20d5eaff6 100644 --- a/eth/tracers/api_test.go +++ b/eth/tracers/api_test.go @@ -1227,9 +1227,11 @@ func TestStandardTraceBlockToFile(t *testing.T) { address = crypto.PubkeyToAddress(key.PublicKey) funds = big.NewInt(1000000000000000) + // first contract the sender transacts with aa = common.HexToAddress("0x7217d81b76bdd8707601e959454e3d776aee5f43") aaCode = []byte{byte(vm.PUSH1), 0x00, byte(vm.POP)} + // second contract the sender transacts with bb = common.HexToAddress("0x7217d81b76bdd8707601e959454e3d776aee5f44") bbCode = []byte{byte(vm.PUSH2), 0x00, 0x01, byte(vm.POP)} ) @@ -1317,11 +1319,11 @@ func TestStandardTraceBlockToFile(t *testing.T) { api := NewAPI(backend) for i, tc := range testSuite { block, _ := api.blockByNumber(context.Background(), tc.blockNumber) - results, err := api.StandardTraceBlockToFile(context.Background(), block.Hash(), tc.config) + txTraces, err := api.StandardTraceBlockToFile(context.Background(), block.Hash(), tc.config) if err != nil { t.Fatalf("test index %d received error %v", i, err) } - for j, traceFileName := range results { + for j, traceFileName := range txTraces { traceReceived, err := os.ReadFile(traceFileName) if err != nil { t.Fatalf("could not read trace file: %v", err)