chore: modernise tooling and reduce package size #15
Annotations
10 errors and 1 warning
tests/account/read.test.ts > Account: Read > should get all modules:
src/account/BiconomySmartAccountV2.ts#L1797
ContractFunctionExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0xcc2f845200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}
Raw Call Arguments:
to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
data: 0xcc2f845200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064
Contract Call:
address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
function: getModulesPaginated(address start, uint256 pageSize)
args: (0x0000000000000000000000000000000000000001, 100)
Docs: https://viem.sh/docs/contract/readContract
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:128:11
❯ BiconomySmartAccountV2.getAllModules src/account/BiconomySmartAccountV2.ts:1797:20
❯ tests/account/read.test.ts:91:23
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: '/docs/contract/readContract', metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0xcc2f845200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}', ' ', 'Raw Call Arguments:', ' to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n data: 0xcc2f845200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064', ' ', 'Contract Call:', ' address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n function: getModulesPaginated(address start, uint256 pageSize)\n args: (0x0000000000000000000000000000000000000001, 100)' ], shortMessage: 'HTTP request failed.', version: 'viem@2.9.16', abi: [ { inputs: [ { internalType: 'contract IEntryPoint', name: 'anEntryPoint', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'AlreadyInitialized', type: 'error' }, { inputs: [], name: 'BaseImplementationCannotBeZero', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotAnEntryPoint', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPoint', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPointOrOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPointOrSelf', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotSelf', type: 'error' }, { inputs: [], name: 'DelegateCallsOnly', type: 'error' }, { inputs: [], name: 'EntryPointCannotBeZero', type: 'error' }, { inputs: [], name: 'HandlerCannotBeZero', type: 'error' }, { inputs: [ { internalType: 'address', name: 'implementationAddress', type: 'address' } ], name: 'InvalidImplementation', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'MixedAuthFail', type: 'error' }, { inputs: [ { internalType: 'address', name: 'module', type: 'address' } ], name: 'ModuleAlreadyEnabled', type: 'error' }, { inputs: [ { internalType: 'address', name: 'expectedModule', type: 'address' }, { internalType: 'address', name: 'returnedModule', type: 'address' }, { internalType: 'address', name: 'prevModule', type: 'address' } ], name: 'ModuleAndPrevModuleMismatch', type: 'error' }, { inputs: [ { internalType: 'address', name: 'modu
|
tests/account/read.test.ts > Account: Read > should check if module is enabled on the smart account:
tests/account/read.test.ts#L101
ContractFunctionExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x2d9ad53d0000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}
Raw Call Arguments:
to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
data: 0x2d9ad53d0000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e
Contract Call:
address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
function: isModuleEnabled(address module)
args: (0x0000001c5b32F37F5beA87BDD5374eB2aC54eA8e)
Docs: https://viem.sh/docs/contract/readContract
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:128:11
❯ tests/account/read.test.ts:101:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: '/docs/contract/readContract', metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0x2d9ad53d0000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}', ' ', 'Raw Call Arguments:', ' to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n data: 0x2d9ad53d0000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e', ' ', 'Contract Call:', ' address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n function: isModuleEnabled(address module)\n args: (0x0000001c5b32F37F5beA87BDD5374eB2aC54eA8e)' ], shortMessage: 'HTTP request failed.', version: 'viem@2.9.16', abi: [ { inputs: [ { internalType: 'contract IEntryPoint', name: 'anEntryPoint', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'AlreadyInitialized', type: 'error' }, { inputs: [], name: 'BaseImplementationCannotBeZero', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotAnEntryPoint', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPoint', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPointOrOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPointOrSelf', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotSelf', type: 'error' }, { inputs: [], name: 'DelegateCallsOnly', type: 'error' }, { inputs: [], name: 'EntryPointCannotBeZero', type: 'error' }, { inputs: [], name: 'HandlerCannotBeZero', type: 'error' }, { inputs: [ { internalType: 'address', name: 'implementationAddress', type: 'address' } ], name: 'InvalidImplementation', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'MixedAuthFail', type: 'error' }, { inputs: [ { internalType: 'address', name: 'module', type: 'address' } ], name: 'ModuleAlreadyEnabled', type: 'error' }, { inputs: [ { internalType: 'address', name: 'expectedModule', type: 'address' }, { internalType: 'address', name: 'returnedModule', type: 'address' }, { internalType: 'address', name: 'prevModule', type: 'address' } ], name: 'ModuleAndPrevModuleMismatch', type: 'error' }, { inputs: [ { internalType: 'address', name: 'module', type: 'address' } ], name: 'ModuleCannotBeZeroOrSentinel', type: 'error' }, { inputs: [ { internalType: 'address', name: 'module', type: 'address' } ], name: 'ModuleNotEnabled', type: 'error' }, { inputs: [], name: 'ModulesAlreadyInitialized', type: 'error' }, { inputs: [], name: 'ModulesSetupExecutionFailed', type: 'error' }, { inputs: [], name: 'OwnerCanNotBeSelf', type: 'error' }, { inputs:
|
tests/account/read.test.ts > Account: Read > should have matching #getUserOpHash and entryPoint.getUserOpHash:
tests/account/read.test.ts#L559
ContractFunctionExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0xa6193531000000000000000000000000000000000000000000000000000000000000002000000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000023333000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000244440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003aaaaaa00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002bbbb000000000000000000000000000000000000000000000000000000000000","to":"0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"},"latest"]}
Raw Call Arguments:
to: 0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789
data: 0xa6193531000000000000000000000000000000000000000000000000000000000000002000000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000023333000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000244440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003aaaaaa00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002bbbb000000000000000000000000000000000000000000000000000000000000
Contract Call:
address: 0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789
function: getUserOpHash((address sender, uint256 nonce, bytes initCode, bytes callData, uint256 callGasLimit, uint256 verificationGasLimit, uint256 preVerificationGas, uint256 maxFeePerGas, uint256 maxPriorityFeePerGas, bytes paymasterAndData, bytes signature))
args: ({"sender":"0x1111111111111111111111111111111111111111","nonce":2,"initCode":"0x3333","callData":"0x4444","callGasLimit":5,"verificationGasLimit":6,"preVerificationGas":7,"maxFeePerGas":8,"maxPriorityFeePerGas":9,"paymasterAndData":"0xaaaaaa","signature":"0xbbbb"})
Docs: https://viem.sh/docs/contract/readContract
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:128:11
❯ tests/account/read.test.ts:559:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: '/docs/contract/readContract', metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0xa619353100000000000
|
tests/account/read.test.ts > Account: Read > should fetch balances for smartAccount:
tests/account/read.test.ts#L762
ContractFunctionExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x70a08231000000000000000000000000e6dbb5c8696d2e0f90b875cbb6ef26e3bba575ac","to":"0xda5289fcaaf71d52a80a254da614a192b693e977"},"latest"]}
Raw Call Arguments:
to: 0xda5289fcaaf71d52a80a254da614a192b693e977
data: 0x70a08231000000000000000000000000e6dbb5c8696d2e0f90b875cbb6ef26e3bba575ac
Contract Call:
address: 0xda5289fcaaf71d52a80a254da614a192b693e977
function: balanceOf(address owner)
args: (0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC)
Docs: https://viem.sh/docs/contract/readContract
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:128:11
❯ tests/account/read.test.ts:762:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: '/docs/contract/readContract', metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0x70a08231000000000000000000000000e6dbb5c8696d2e0f90b875cbb6ef26e3bba575ac","to":"0xda5289fcaaf71d52a80a254da614a192b693e977"},"latest"]}', ' ', 'Raw Call Arguments:', ' to: 0xda5289fcaaf71d52a80a254da614a192b693e977\n data: 0x70a08231000000000000000000000000e6dbb5c8696d2e0f90b875cbb6ef26e3bba575ac', ' ', 'Contract Call:', ' address: 0xda5289fcaaf71d52a80a254da614a192b693e977\n function: balanceOf(address owner)\n args: (0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC)' ], shortMessage: 'HTTP request failed.', version: 'viem@2.9.16', abi: [ { name: 'balanceOf', type: 'function', stateMutability: 'view', inputs: [ { type: 'address', name: 'owner' } ], outputs: [ { type: 'uint256', name: 'balance' } ] } ], args: [ '0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC' ], contractAddress: '0xda5289fcaaf71d52a80a254da614a192b693e977', formattedArgs: undefined, functionName: 'balanceOf', sender: undefined, walk: 'Function<walk>' }
Caused by: Caused by: CallExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x70a08231000000000000000000000000e6dbb5c8696d2e0f90b875cbb6ef26e3bba575ac","to":"0xda5289fcaaf71d52a80a254da614a192b693e977"},"latest"]}
Raw Call Arguments:
to: 0xda5289fcaaf71d52a80a254da614a192b693e977
data: 0x70a08231000000000000000000000000e6dbb5c8696d2e0f90b875cbb6ef26e3bba575ac
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getCallError node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call node_modules/viem/actions/public/call.ts:241:11
❯ readContract node_modules/viem/actions/public/readContract.ts:112:22
❯ tests/account/read.test.ts:762:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: undefined, metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0x70a08231000000000000000000000000e6dbb5c8696d2e0f90b875cbb6ef26e3bba575ac","to":"0xda5289fcaaf71d52a80a254da614a192b693e977"},"latest"]}', ' ', 'Raw Call Arguments:', ' to: 0xda5289fcaaf71d52a80a254da614a192b693e977\n data: 0x70a08231000000000000000000000000e6dbb5c8696d2e0f90b875cbb6ef26e3bba575ac' ], shortMessage: 'HTTP request failed.', version: 'viem@2.9.16', walk: 'Function<walk>' }
Caused by: Caused by: HttpRequestError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x70a08231000000000000000000000000e6dbb5c8696d2e0f90b875cbb6ef26e3bba575ac","to":"0xda5289fcaaf71d52a80a254da614a192b693e977"},"latest"]}
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ Object.request node_modules/viem/utils/rpc/http.ts:136:15
❯ fn node_modules/viem/clients/transports/http.ts:124:19
❯ request node_modules/viem/clients/transports/http.ts:129:39
❯ wit
|
tests/account/read.test.ts > Account: Read > should verify a correct signature through isValidSignature:
tests/account/read.test.ts#L818
ContractFunctionExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x1626ba7e3bb9e3dada4f8f88c53804c69fd528086aeb6c9eaea5371d169e43ae29ee9bff000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e00000000000000000000000000000000000000000000000000000000000000410185e2cf33e82a7ffc100f5b76ec991f8580ed68c228842f31770b50a79ffae30f08b827918be65a45ae8760a47c1b304498bb31e8cc7473e6d4473dec21e94c1c00000000000000000000000000000000000000000000000000000000000000","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}
Raw Call Arguments:
to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
data: 0x1626ba7e3bb9e3dada4f8f88c53804c69fd528086aeb6c9eaea5371d169e43ae29ee9bff000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e00000000000000000000000000000000000000000000000000000000000000410185e2cf33e82a7ffc100f5b76ec991f8580ed68c228842f31770b50a79ffae30f08b827918be65a45ae8760a47c1b304498bb31e8cc7473e6d4473dec21e94c1c00000000000000000000000000000000000000000000000000000000000000
Contract Call:
address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
function: isValidSignature(bytes32 dataHash, bytes signature)
args: (0x3bb9e3dada4f8f88c53804c69fd528086aeb6c9eaea5371d169e43ae29ee9bff, 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e00000000000000000000000000000000000000000000000000000000000000410185e2cf33e82a7ffc100f5b76ec991f8580ed68c228842f31770b50a79ffae30f08b827918be65a45ae8760a47c1b304498bb31e8cc7473e6d4473dec21e94c1c00000000000000000000000000000000000000000000000000000000000000)
Docs: https://viem.sh/docs/contract/readContract
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:128:11
❯ tests/account/read.test.ts:818:24
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: '/docs/contract/readContract', metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0x1626ba7e3bb9e3dada4f8f88c53804c69fd528086aeb6c9eaea5371d169e43ae29ee9bff000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e00000000000000000000000000000000000000000000000000000000000000410185e2cf33e82a7ffc100f5b76ec991f8580ed68c228842f31770b50a79ffae30f08b827918be65a45ae8760a47c1b304498bb31e8cc7473e6d4473dec21e94c1c00000000000000000000000000000000000000000000000000000000000000","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}', ' ', 'Raw Call Arguments:', ' to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n data: 0x1626ba7e3bb9e3dada4f8f88c53804c69fd528086aeb6c9eaea5371d169e43ae29ee9bff000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e00000000000000000000000000000000000000000000000000000000000000410185e2cf33e82a7ffc100f5b76ec991f8580ed68c228842f31770b50a79ffae30f08b827918be65a45ae8760a47c1b304498bb31e8cc7473e6d4473dec21e94c1c00000000000000000000000000000000000000000000000000000000000000', ' ', 'Contract Call:', ' address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n function: isValidSi
|
tests/account/read.test.ts > Account: Read > should confirm that signature is not valid:
tests/account/read.test.ts#L847
ContractFunctionExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x1626ba7e3bb9e3dada4f8f88c53804c69fd528086aeb6c9eaea5371d169e43ae29ee9bff000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e00000000000000000000000000000000000000000000000000000000000000417b5f77aac3cae10924a77be8297ccee6ab655a6180b837597c0fe931aebac94a35b905df9196103ff55fdf91deaf23bde973389198f7ae56195f95664ec888f01b00000000000000000000000000000000000000000000000000000000000000","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}
Raw Call Arguments:
to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
data: 0x1626ba7e3bb9e3dada4f8f88c53804c69fd528086aeb6c9eaea5371d169e43ae29ee9bff000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e00000000000000000000000000000000000000000000000000000000000000417b5f77aac3cae10924a77be8297ccee6ab655a6180b837597c0fe931aebac94a35b905df9196103ff55fdf91deaf23bde973389198f7ae56195f95664ec888f01b00000000000000000000000000000000000000000000000000000000000000
Contract Call:
address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
function: isValidSignature(bytes32 dataHash, bytes signature)
args: (0x3bb9e3dada4f8f88c53804c69fd528086aeb6c9eaea5371d169e43ae29ee9bff, 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e00000000000000000000000000000000000000000000000000000000000000417b5f77aac3cae10924a77be8297ccee6ab655a6180b837597c0fe931aebac94a35b905df9196103ff55fdf91deaf23bde973389198f7ae56195f95664ec888f01b00000000000000000000000000000000000000000000000000000000000000)
Docs: https://viem.sh/docs/contract/readContract
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:128:11
❯ tests/account/read.test.ts:847:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: '/docs/contract/readContract', metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0x1626ba7e3bb9e3dada4f8f88c53804c69fd528086aeb6c9eaea5371d169e43ae29ee9bff000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e00000000000000000000000000000000000000000000000000000000000000417b5f77aac3cae10924a77be8297ccee6ab655a6180b837597c0fe931aebac94a35b905df9196103ff55fdf91deaf23bde973389198f7ae56195f95664ec888f01b00000000000000000000000000000000000000000000000000000000000000","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}', ' ', 'Raw Call Arguments:', ' to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n data: 0x1626ba7e3bb9e3dada4f8f88c53804c69fd528086aeb6c9eaea5371d169e43ae29ee9bff000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32f37f5bea87bdd5374eb2ac54ea8e00000000000000000000000000000000000000000000000000000000000000417b5f77aac3cae10924a77be8297ccee6ab655a6180b837597c0fe931aebac94a35b905df9196103ff55fdf91deaf23bde973389198f7ae56195f95664ec888f01b00000000000000000000000000000000000000000000000000000000000000', ' ', 'Contract Call:', ' address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n function: isValidSi
|
tests/account/write.test.ts > Account: Write > should gaslessly mint an NFT:
tests/account/write.test.ts#L96
ContractFunctionExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x70a082310000000000000000000000003079b249dfde4692d7844aa261f8cf7d927a0da5","to":"0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e"},"latest"]}
Raw Call Arguments:
to: 0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e
data: 0x70a082310000000000000000000000003079b249dfde4692d7844aa261f8cf7d927a0da5
Contract Call:
address: 0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e
function: balanceOf(address owner)
args: (0x3079B249DFDE4692D7844aA261f8cf7D927A0DA5)
Docs: https://viem.sh/docs/contract/readContract
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:128:11
❯ tests/account/write.test.ts:96:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: '/docs/contract/readContract', metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0x70a082310000000000000000000000003079b249dfde4692d7844aa261f8cf7d927a0da5","to":"0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e"},"latest"]}', ' ', 'Raw Call Arguments:', ' to: 0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e\n data: 0x70a082310000000000000000000000003079b249dfde4692d7844aa261f8cf7d927a0da5', ' ', 'Contract Call:', ' address: 0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e\n function: balanceOf(address owner)\n args: (0x3079B249DFDE4692D7844aA261f8cf7D927A0DA5)' ], shortMessage: 'HTTP request failed.', version: 'viem@2.9.16', abi: [ { name: 'balanceOf', type: 'function', stateMutability: 'view', inputs: [ { type: 'address', name: 'owner' } ], outputs: [ { type: 'uint256', name: 'balance' } ] } ], args: [ '0x3079B249DFDE4692D7844aA261f8cf7D927A0DA5' ], contractAddress: '0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e', formattedArgs: undefined, functionName: 'balanceOf', sender: undefined, walk: 'Function<walk>' }
Caused by: CallExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x70a082310000000000000000000000003079b249dfde4692d7844aa261f8cf7d927a0da5","to":"0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e"},"latest"]}
Raw Call Arguments:
to: 0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e
data: 0x70a082310000000000000000000000003079b249dfde4692d7844aa261f8cf7d927a0da5
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getCallError node_modules/viem/utils/errors/getCallError.ts:42:10
❯ call node_modules/viem/actions/public/call.ts:241:11
❯ readContract node_modules/viem/actions/public/readContract.ts:112:22
❯ tests/account/write.test.ts:96:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: undefined, metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0x70a082310000000000000000000000003079b249dfde4692d7844aa261f8cf7d927a0da5","to":"0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e"},"latest"]}', ' ', 'Raw Call Arguments:', ' to: 0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e\n data: 0x70a082310000000000000000000000003079b249dfde4692d7844aa261f8cf7d927a0da5' ], shortMessage: 'HTTP request failed.', version: 'viem@2.9.16', walk: 'Function<walk>' }
Caused by: HttpRequestError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x70a082310000000000000000000000003079b249dfde4692d7844aa261f8cf7d927a0da5","to":"0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e"},"latest"]}
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ Object.request node_modules/viem/utils/rpc/http.ts:136:15
❯ fn node_modules/viem/clients/transports/http.ts:124:19
❯ request node_modules/viem/clients/transports/http.ts:129:39
❯ withRetry.delay.count.cou
|
tests/account/write.test.ts > Account: Write > should deploy a smart account with native token balance:
tests/account/write.test.ts#L151
TransactionExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_chainId"}
Request Arguments:
chain: Polygon Mumbai (id: 80001)
from: 0xFA66E705cf2582cF56528386Bb9dFCA119767262
to: 0x1B53B029bd9D0c9a655a3c156715593cDC8bEc74
value: 0.1 MATIC
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getTransactionError node_modules/viem/utils/errors/getTransactionError.ts:44:10
❯ sendTransaction node_modules/viem/actions/wallet/sendTransaction.ts:240:11
❯ tests/account/write.test.ts:151:18
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: undefined, metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_chainId"}', ' ', 'Request Arguments:', ' chain: Polygon Mumbai (id: 80001)\n from: 0xFA66E705cf2582cF56528386Bb9dFCA119767262\n to: 0x1B53B029bd9D0c9a655a3c156715593cDC8bEc74\n value: 0.1 MATIC' ], shortMessage: 'HTTP request failed.', version: 'viem@2.9.16', walk: 'Function<walk>' }
Caused by: HttpRequestError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_chainId"}
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ Object.request node_modules/viem/utils/rpc/http.ts:136:15
❯ fn node_modules/viem/clients/transports/http.ts:124:19
❯ request node_modules/viem/clients/transports/http.ts:129:39
❯ withRetry.delay.count.count node_modules/viem/utils/buildRequest.ts:104:18
❯ attemptRetry node_modules/viem/utils/promise/withRetry.ts:44:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: undefined, metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_chainId"}' ], shortMessage: 'HTTP request failed.', version: 'viem@2.9.16', body: { method: 'eth_chainId', params: undefined }, headers: undefined, status: undefined, url: 'https://rpc.ankr.com/polygon_mumbai', walk: 'Function<walk>' }
|
tests/modules/write.test.ts > Modules: Write > should enable session module:
tests/modules/write.test.ts#L88
ContractFunctionExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x2d9ad53d000000000000000000000000000002fbffedd9b33f4e7156f2de8d48945e7489","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}
Raw Call Arguments:
to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
data: 0x2d9ad53d000000000000000000000000000002fbffedd9b33f4e7156f2de8d48945e7489
Contract Call:
address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
function: isModuleEnabled(address module)
args: (0x000002FbFfedd9B33F4E7156F2DE8D48945E7489)
Docs: https://viem.sh/docs/contract/readContract
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:128:11
❯ tests/modules/write.test.ts:88:33
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: '/docs/contract/readContract', metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0x2d9ad53d000000000000000000000000000002fbffedd9b33f4e7156f2de8d48945e7489","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}', ' ', 'Raw Call Arguments:', ' to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n data: 0x2d9ad53d000000000000000000000000000002fbffedd9b33f4e7156f2de8d48945e7489', ' ', 'Contract Call:', ' address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n function: isModuleEnabled(address module)\n args: (0x000002FbFfedd9B33F4E7156F2DE8D48945E7489)' ], shortMessage: 'HTTP request failed.', version: 'viem@2.9.16', abi: [ { inputs: [ { internalType: 'contract IEntryPoint', name: 'anEntryPoint', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'AlreadyInitialized', type: 'error' }, { inputs: [], name: 'BaseImplementationCannotBeZero', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotAnEntryPoint', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPoint', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPointOrOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPointOrSelf', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotSelf', type: 'error' }, { inputs: [], name: 'DelegateCallsOnly', type: 'error' }, { inputs: [], name: 'EntryPointCannotBeZero', type: 'error' }, { inputs: [], name: 'HandlerCannotBeZero', type: 'error' }, { inputs: [ { internalType: 'address', name: 'implementationAddress', type: 'address' } ], name: 'InvalidImplementation', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'MixedAuthFail', type: 'error' }, { inputs: [ { internalType: 'address', name: 'module', type: 'address' } ], name: 'ModuleAlreadyEnabled', type: 'error' }, { inputs: [ { internalType: 'address', name: 'expectedModule', type: 'address' }, { internalType: 'address', name: 'returnedModule', type: 'address' }, { internalType: 'address', name: 'prevModule', type: 'address' } ], name: 'ModuleAndPrevModuleMismatch', type: 'error' }, { inputs: [ { internalType: 'address', name: 'module', type: 'address' } ], name: 'ModuleCannotBeZeroOrSentinel', type: 'error' }, { inputs: [ { internalType: 'address', name: 'module', type: 'address' } ], name: 'ModuleNotEnabled', type: 'error' }, { inputs: [], name: 'ModulesAlreadyInitialized', type: 'error' }, { inputs: [], name: 'ModulesSetupExecutionFailed', type: 'error' }, { inputs: [], name: 'OwnerCanNotBeSelf', type: 'error' }, { inputs:
|
tests/modules/write.test.ts > Modules: Write > should enable batched module:
tests/modules/write.test.ts#L111
ContractFunctionExecutionError: HTTP request failed.
URL: https://rpc.ankr.com/polygon_mumbai
Request body: {"method":"eth_call","params":[{"data":"0x2d9ad53d00000000000000000000000000000d09967410f8c76752a104c9848b57ebba55","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}
Raw Call Arguments:
to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
data: 0x2d9ad53d00000000000000000000000000000d09967410f8c76752a104c9848b57ebba55
Contract Call:
address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC
function: isModuleEnabled(address module)
args: (0x00000D09967410f8C76752A104c9848b57ebba55)
Docs: https://viem.sh/docs/contract/readContract
Details: Unexpected token o in JSON at position 1
Version: viem@2.9.16
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:128:11
❯ tests/modules/write.test.ts:111:26
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Unexpected token o in JSON at position 1', docsPath: '/docs/contract/readContract', metaMessages: [ 'URL: https://rpc.ankr.com/polygon_mumbai', 'Request body: {"method":"eth_call","params":[{"data":"0x2d9ad53d00000000000000000000000000000d09967410f8c76752a104c9848b57ebba55","to":"0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC"},"latest"]}', ' ', 'Raw Call Arguments:', ' to: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n data: 0x2d9ad53d00000000000000000000000000000d09967410f8c76752a104c9848b57ebba55', ' ', 'Contract Call:', ' address: 0xe6dBb5C8696d2E0f90B875cbb6ef26E3bBa575AC\n function: isModuleEnabled(address module)\n args: (0x00000D09967410f8C76752A104c9848b57ebba55)' ], shortMessage: 'HTTP request failed.', version: 'viem@2.9.16', abi: [ { inputs: [ { internalType: 'contract IEntryPoint', name: 'anEntryPoint', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'AlreadyInitialized', type: 'error' }, { inputs: [], name: 'BaseImplementationCannotBeZero', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotAnEntryPoint', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPoint', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPointOrOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotEntryPointOrSelf', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'CallerIsNotSelf', type: 'error' }, { inputs: [], name: 'DelegateCallsOnly', type: 'error' }, { inputs: [], name: 'EntryPointCannotBeZero', type: 'error' }, { inputs: [], name: 'HandlerCannotBeZero', type: 'error' }, { inputs: [ { internalType: 'address', name: 'implementationAddress', type: 'address' } ], name: 'InvalidImplementation', type: 'error' }, { inputs: [ { internalType: 'address', name: 'caller', type: 'address' } ], name: 'MixedAuthFail', type: 'error' }, { inputs: [ { internalType: 'address', name: 'module', type: 'address' } ], name: 'ModuleAlreadyEnabled', type: 'error' }, { inputs: [ { internalType: 'address', name: 'expectedModule', type: 'address' }, { internalType: 'address', name: 'returnedModule', type: 'address' }, { internalType: 'address', name: 'prevModule', type: 'address' } ], name: 'ModuleAndPrevModuleMismatch', type: 'error' }, { inputs: [ { internalType: 'address', name: 'module', type: 'address' } ], name: 'ModuleCannotBeZeroOrSentinel', type: 'error' }, { inputs: [ { internalType: 'address', name: 'module', type: 'address' } ], name: 'ModuleNotEnabled', type: 'error' }, { inputs: [], name: 'ModulesAlreadyInitialized', type: 'error' }, { inputs: [], name: 'ModulesSetupExecutionFailed', type: 'error' }, { inputs: [], name: 'OwnerCanNotBeSelf', type: 'error' }, { inputs
|
coverage
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|