Skip to content

Commit

Permalink
Merge pull request #89 from testinprod-io/pcw109550/callMany-l1costfunc
Browse files Browse the repository at this point in the history
Add L1CostFunc for supporting `callMany` RPCs
  • Loading branch information
pcw109550 authored Aug 2, 2023
2 parents a739563 + 6dd9e84 commit 1c00657
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/rpcdaemon/commands/eth_callMany.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ func (api *APIImpl) CallMany(ctx context.Context, bundles []Bundle, simulateCont
GasLimit: parent.GasLimit,
BaseFee: &baseFee,
}
blockCtx.L1CostFunc = types.NewL1CostFunc(chainConfig, st)

// Get a new instance of the EVM
evm = vm.NewEVM(blockCtx, txCtx, st, chainConfig, vm.Config{Debug: false})
Expand Down
1 change: 1 addition & 0 deletions cmd/rpcdaemon/commands/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ func (api *PrivateDebugAPIImpl) TraceCallMany(ctx context.Context, bundles []Bun
GasLimit: parent.GasLimit,
BaseFee: &baseFee,
}
blockCtx.L1CostFunc = types.NewL1CostFunc(chainConfig, st)

// Get a new instance of the EVM
evm = vm.NewEVM(blockCtx, txCtx, st, chainConfig, vm.Config{Debug: false})
Expand Down

0 comments on commit 1c00657

Please sign in to comment.