Route read RPC methods directly to node for injected wallets #216
Annotations
2 errors
|
test
Process completed with exit code 1.
|
|
Unhandled error:
tests/client.test.ts#L284
TypeCheckError: No overload matches this call.
Overload 1 of 2, '(args { method "web3_clientVersion"; params? undefined; } | { method "web3_sha3"; params [data `0x${string}`]; } | { method "net_listening"; params? undefined; } | { method "net_peerCount"; params? undefined; } | ... 71 more ... | { ...; }, options? EIP1193RequestOptions | undefined) Promise<...>', gave the following error.
Argument of type '{ method "eth_getTransactionByHash"; params [string]; }' is not assignable to parameter of type '{ method "web3_clientVersion"; params? undefined; } | { method "web3_sha3"; params [data `0x${string}`]; } | { method "net_listening"; params? undefined; } | { method "net_peerCount"; params? undefined; } | ... 71 more ... | { ...; }'.
Types of property 'params' are incompatible.
Type '[string]' is not assignable to type '[hash `0x${string}`]'.
Type 'string' is not assignable to type '`0x${string}`'.
Overload 2 of 2, '(args { method "sim_fundAccount"; params [address `0x${string}`, amount number]; } | { method "eth_getTransactionByHash"; params [hash Hash]; } | { method "eth_call"; params [requestParams any, blockNumberOrHash string]; } | { method "eth_sendRawTransaction"; params [signedTransaction ...]; } | ... 6 more ... | { ...; }) Promise<...>', gave the following error.
Argument of type '{ method "eth_getTransactionByHash"; params [string]; }' is not assignable to parameter of type '{ method "sim_fundAccount"; params [address `0x${string}`, amount number]; } | { method "eth_getTransactionByHash"; params [hash Hash]; } | { method "eth_call"; params [requestParams any, blockNumberOrHash string]; } | { method "eth_sendRawTransaction"; params [signedTransaction ...]; } | ... 6 more .....'.
Types of property 'params' are incompatible.
Type '[string]' is not assignable to type '[hash Hash]'.
Type 'string' is not assignable to type 'Hash'.
Type 'string' is not assignable to type '`0x${string}`'.
❯ tests/client.test.ts:284:46
|