internal/ethapi: add block overrides to eth_call (#26414)

Adds an optional config parameter to eth_call which allows users to override block context fields (same functionality that was added to traceCall in #24871)

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
Sina Mahmoodi
2023-05-02 04:28:43 -04:00
committed by GitHub
co-authored by Martin Holst Swende
parent 52c246fac3
commit ae66009640
11 changed files with 674 additions and 40 deletions
+2 -2
View File
@@ -608,8 +608,8 @@ web3._extend({
new web3._extend.Method({
name: 'call',
call: 'eth_call',
params: 3,
inputFormatter: [web3._extend.formatters.inputCallFormatter, web3._extend.formatters.inputDefaultBlockNumberFormatter, null],
params: 4,
inputFormatter: [web3._extend.formatters.inputCallFormatter, web3._extend.formatters.inputDefaultBlockNumberFormatter, null, null],
}),
],
properties: [