mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
rename blocks to blockStateCalls
This commit is contained in:
parent
63f4f6e5a8
commit
80506eaa9c
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue