@@ -3,8 +3,7 @@ import nock from 'nock'
3
3
type JsonRpcPayload = {
4
4
id : number
5
5
method : string
6
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
7
- params : Array < any > | Record < string , any >
6
+ params : Array < { to : string ; data : string } >
8
7
jsonrpc : '2.0'
9
8
}
10
9
@@ -13,7 +12,7 @@ export const mockETHMainnetContractCallResponseSuccess = (): nock.Scope =>
13
12
. post ( '/' , ( body : any ) => Array . isArray ( body ) )
14
13
. reply (
15
14
200 ,
16
- ( uri , requestBody : any [ ] ) => {
15
+ ( _uri , requestBody : any [ ] ) => {
17
16
return requestBody . map ( ( request : JsonRpcPayload ) => {
18
17
if ( request . method === 'eth_chainId' ) {
19
18
return {
@@ -83,7 +82,7 @@ export const mockBASEMainnetContractCallResponseSuccess = (): nock.Scope =>
83
82
. post ( '/' , ( body : any ) => Array . isArray ( body ) )
84
83
. reply (
85
84
200 ,
86
- ( uri , requestBody : any [ ] ) => {
85
+ ( _uri , requestBody : any [ ] ) => {
87
86
return requestBody . map ( ( request : JsonRpcPayload ) => {
88
87
if ( request . method === 'eth_chainId' ) {
89
88
return {
@@ -141,7 +140,7 @@ export const mockETHContractCallResponseSuccess = (): nock.Scope =>
141
140
. post ( '/' , ( body : any ) => Array . isArray ( body ) )
142
141
. reply (
143
142
200 ,
144
- ( uri , requestBody : any [ ] ) => {
143
+ ( _uri , requestBody : any [ ] ) => {
145
144
return requestBody . map ( ( request : JsonRpcPayload ) => {
146
145
if ( request . method === 'eth_chainId' ) {
147
146
return {
0 commit comments