Skip to content

Commit 90c929a

Browse files
committed
Log block overrides args on EstimateGas JSON-RPC endpoint
1 parent 75b6349 commit 90c929a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/api.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,11 @@ func (b *BlockChainAPI) EstimateGas(
723723
return handleError[hexutil.Uint64](err, b.logger, b.collector)
724724
}
725725

726+
blockOverridesArgs, err := json.Marshal(blockOverrides)
727+
if err != nil {
728+
return handleError[hexutil.Uint64](err, b.logger, b.collector)
729+
}
730+
726731
txArgs, err := json.Marshal(args)
727732
if err != nil {
728733
return handleError[hexutil.Uint64](err, b.logger, b.collector)
@@ -733,6 +738,7 @@ func (b *BlockChainAPI) EstimateGas(
733738
RawJSON("args", txArgs).
734739
Str("blockTag", fmt.Sprintf("%v", blockNumberOrHash)).
735740
RawJSON("stateOverrides", stateOverridesArgs).
741+
RawJSON("blockOverrides", blockOverridesArgs).
736742
Logger()
737743

738744
if err := b.rateLimiter.Apply(ctx, EthEstimateGas); err != nil {

0 commit comments

Comments
 (0)