@@ -3,8 +3,7 @@ import nock from 'nock'
33type JsonRpcPayload = {
44 id : number
55 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 } >
87 jsonrpc : '2.0'
98}
109
@@ -13,7 +12,7 @@ export const mockETHMainnetContractCallResponseSuccess = (): nock.Scope =>
1312 . post ( '/' , ( body : any ) => Array . isArray ( body ) )
1413 . reply (
1514 200 ,
16- ( uri , requestBody : any [ ] ) => {
15+ ( _uri , requestBody : any [ ] ) => {
1716 return requestBody . map ( ( request : JsonRpcPayload ) => {
1817 if ( request . method === 'eth_chainId' ) {
1918 return {
@@ -83,7 +82,7 @@ export const mockBASEMainnetContractCallResponseSuccess = (): nock.Scope =>
8382 . post ( '/' , ( body : any ) => Array . isArray ( body ) )
8483 . reply (
8584 200 ,
86- ( uri , requestBody : any [ ] ) => {
85+ ( _uri , requestBody : any [ ] ) => {
8786 return requestBody . map ( ( request : JsonRpcPayload ) => {
8887 if ( request . method === 'eth_chainId' ) {
8988 return {
@@ -141,7 +140,7 @@ export const mockETHContractCallResponseSuccess = (): nock.Scope =>
141140 . post ( '/' , ( body : any ) => Array . isArray ( body ) )
142141 . reply (
143142 200 ,
144- ( uri , requestBody : any [ ] ) => {
143+ ( _uri , requestBody : any [ ] ) => {
145144 return requestBody . map ( ( request : JsonRpcPayload ) => {
146145 if ( request . method === 'eth_chainId' ) {
147146 return {
0 commit comments