From 80506eaa9c474d02c16abaed3e2e9f5aa6fcfba5 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Mon, 31 Jul 2023 15:48:03 +0200 Subject: [PATCH] rename blocks to blockStateCalls --- internal/ethapi/api.go | 6 +++--- internal/ethapi/api_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 3cd9529b6d..cc1a15a851 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1215,8 +1215,8 @@ func (r *callResult) MarshalJSON() ([]byte, error) { } type multicallOpts struct { - Blocks []CallBatch - TraceTransfers bool + BlockStateCalls []CallBatch + TraceTransfers bool } // MulticallV1 executes series of transactions on top of a base state. @@ -1236,7 +1236,7 @@ func (s *BlockChainAPI) MulticallV1(ctx context.Context, opts multicallOpts, blo var ( cancel context.CancelFunc timeout = s.b.RPCEVMTimeout() - blocks = opts.Blocks + blocks = opts.BlockStateCalls ) if timeout > 0 { ctx, cancel = context.WithTimeout(ctx, timeout) diff --git a/internal/ethapi/api_test.go b/internal/ethapi/api_test.go index 453d233ca3..78238d96bd 100644 --- a/internal/ethapi/api_test.go +++ b/internal/ethapi/api_test.go @@ -1214,7 +1214,7 @@ func TestMulticallV1(t *testing.T) { for i, tc := range testSuite { t.Run(tc.name, func(t *testing.T) { - opts := multicallOpts{Blocks: tc.blocks} + opts := multicallOpts{BlockStateCalls: tc.blocks} if tc.includeTransfers != nil && *tc.includeTransfers { opts.TraceTransfers = true }