Skip to content

Commit

Permalink
Merge pull request #81 from testinprod-io/pcw109550/fix-relay-eth-call
Browse files Browse the repository at this point in the history
Fix `eth_call` RPC relaying state override param
  • Loading branch information
pcw109550 authored Jul 14, 2023
2 parents 0d527b6 + c8c9b4b commit 9bb2ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/commands/eth_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (api *APIImpl) Call(ctx context.Context, args ethapi2.CallArgs, blockNrOrHa
return nil, rpc.ErrNoHistoricalFallback
}
var result hexutility.Bytes
if err := api.relayToHistoricalBackend(ctx, &result, "eth_call", args, hexutil.EncodeUint64(blockNum)); err != nil {
if err := api.relayToHistoricalBackend(ctx, &result, "eth_call", args, hexutil.EncodeUint64(blockNum), overrides); err != nil {
return nil, fmt.Errorf("historical backend error: %w", err)
}
return result, nil
Expand Down

0 comments on commit 9bb2ff0

Please sign in to comment.