Add support for historical BlockNumber rpc methods (#4574)

* Add support for historical BlockNumber rpc methods

* Update function description

* Apply suggestions from code review

Co-authored-by: Jaco <jacogr@gmail.com>
This commit is contained in:
Scott Twiname
2022-02-20 07:50:41 +02:00
committed by GitHub
co-authored by Jaco
parent 5080b266a0
commit 5da8f21947
3 changed files with 27 additions and 3 deletions
+6
View File
@@ -62,6 +62,7 @@ export const rpc: DefinitionsRpc = objectSpread({}, netRpc, web3Rpc, {
type: 'EthCallRequest'
},
{
isHistoric: true,
isOptional: true,
name: 'number',
type: 'BlockNumber'
@@ -87,6 +88,7 @@ export const rpc: DefinitionsRpc = objectSpread({}, netRpc, web3Rpc, {
type: 'EthCallRequest'
},
{
isHistoric: true,
isOptional: true,
name: 'number',
type: 'BlockNumber'
@@ -107,6 +109,7 @@ export const rpc: DefinitionsRpc = objectSpread({}, netRpc, web3Rpc, {
type: 'H160'
},
{
isHistoric: true,
isOptional: true,
name: 'number',
type: 'BlockNumber'
@@ -167,6 +170,7 @@ export const rpc: DefinitionsRpc = objectSpread({}, netRpc, web3Rpc, {
type: 'H160'
},
{
isHistoric: true,
isOptional: true,
name: 'number',
type: 'BlockNumber'
@@ -234,6 +238,7 @@ export const rpc: DefinitionsRpc = objectSpread({}, netRpc, web3Rpc, {
type: 'U256'
},
{
isHistoric: true,
isOptional: true,
name: 'number',
type: 'BlockNumber'
@@ -287,6 +292,7 @@ export const rpc: DefinitionsRpc = objectSpread({}, netRpc, web3Rpc, {
type: 'H256'
},
{
isHistoric: true,
isOptional: true,
name: 'number',
type: 'BlockNumber'