chore: refactor codebase #130
Annotations
10 errors
Run the tests:
packages/sdk/account/toNexusAccount.test.ts#L129
ContractFunctionExecutionError: The contract function "isValidSignature" returned no data ("0x").
This could be due to any of the following:
- The contract does not have the function "isValidSignature",
- The parameters passed to the contract function may be invalid, or
- The address is not a contract.
Contract Call:
address: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d
function: isValidSignature(bytes32 hash, bytes signature)
args: (0xc54661980096c5caee17f8f322b3e44cc60adcbb8fb81af2e03d7b0ebddb30b0, 0x000000000000000000000000976869cf9c5dd5046b41963ef1bbce62b53668690000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a40d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb9226600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000976869cf9c5dd5046b41963ef1bbce62b53668690000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a40d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb9226600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000556854688d3d9a87a33addd5f4deb5cea1b97fa5b7144d5ea903aabc241f7cfda6cd1cdf39bf65235090de24ef70effa1db71e19f75f53682802f656f4d89fff300d6d68dc597cd6bfb175738ca4a8397f0a91e0331c000000000000000000000064926492649264926492649264926492649264926492649264926492649264926492649264926492649264926492649264926492649264926492649264926492)
Docs: https://viem.sh/docs/contract/readContract
Version: 2.21.6
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:136:11
❯ packages/sdk/account/toNexusAccount.test.ts:129:30
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "isValidSignature",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.', ' ', 'Contract Call:', ' address: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d\n function: isValidSignature(bytes32 hash, bytes signature)\n args: (0xc54661980096c5caee17f8f322b3e44cc60adcbb8fb81af2e03d7b0ebddb30b0, 0x000000000000000000000000976869cf9c5dd5046b41963ef1bbce62b53668690000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a40d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb9226600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000976869cf9c5dd5046b41963ef1bbce62b536686900000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000
|
Run the tests:
packages/sdk/account/toNexusAccount.test.ts#L214
ContractFunctionExecutionError: The contract function "DOMAIN_SEPARATOR" returned no data ("0x").
This could be due to any of the following:
- The contract does not have the function "DOMAIN_SEPARATOR",
- The parameters passed to the contract function may be invalid, or
- The address is not a contract.
Contract Call:
address: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d
function: DOMAIN_SEPARATOR()
Docs: https://viem.sh/docs/contract/readContract
Version: 2.21.6
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:136:11
❯ packages/sdk/account/toNexusAccount.test.ts:214:29
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "DOMAIN_SEPARATOR",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.', ' ', 'Contract Call:', ' address: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d\n function: DOMAIN_SEPARATOR()' ], shortMessage: 'The contract function "DOMAIN_SEPARATOR" returned no data ("0x").', version: '2.21.6', abi: [ { name: 'DOMAIN_SEPARATOR', type: 'function', stateMutability: 'view', inputs: [], outputs: [ { type: 'bytes32' } ] } ], args: undefined, contractAddress: '0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d', formattedArgs: undefined, functionName: 'DOMAIN_SEPARATOR', sender: undefined, walk: 'Function<walk>' }
Caused by: ContractFunctionZeroDataError: The contract function "DOMAIN_SEPARATOR" returned no data ("0x").
This could be due to any of the following:
- The contract does not have the function "DOMAIN_SEPARATOR",
- The parameters passed to the contract function may be invalid, or
- The address is not a contract.
Version: 2.21.6
❯ node_modules/viem/utils/errors/getContractError.ts:57:14
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:70:5
❯ readContract node_modules/viem/actions/public/readContract.ts:136:11
❯ packages/sdk/account/toNexusAccount.test.ts:214:29
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "DOMAIN_SEPARATOR",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.' ], shortMessage: 'The contract function "DOMAIN_SEPARATOR" returned no data ("0x").', version: '2.21.6', walk: 'Function<walk>' }
|
Run the tests:
packages/sdk/account/utils/Utils.ts#L314
ContractFunctionExecutionError: The contract function "eip712Domain" returned no data ("0x").
This could be due to any of the following:
- The contract does not have the function "eip712Domain",
- The parameters passed to the contract function may be invalid, or
- The address is not a contract.
Contract Call:
address: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d
function: eip712Domain()
Docs: https://viem.sh/docs/contract/readContract
Version: 2.21.6
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:136:11
❯ Module.getAccountDomainStructFields packages/sdk/account/utils/Utils.ts:314:38
❯ Object.signTypedData packages/sdk/account/toNexusAccount.ts:401:39
❯ Object.signTypedData node_modules/viem/account-abstraction/accounts/toSmartAccount.ts:127:53
❯ packages/sdk/account/toNexusAccount.test.ts:336:28
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "eip712Domain",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.', ' ', 'Contract Call:', ' address: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d\n function: eip712Domain()' ], shortMessage: 'The contract function "eip712Domain" returned no data ("0x").', version: '2.21.6', abi: [ { name: 'eip712Domain', type: 'function', stateMutability: 'view', inputs: [], outputs: [ { type: 'bytes1', name: 'fields' }, { type: 'string', name: 'name' }, { type: 'string', name: 'version' }, { type: 'uint256', name: 'chainId' }, { type: 'address', name: 'verifyingContract' }, { type: 'bytes32', name: 'salt' }, { type: 'uint256[]', name: 'extensions' } ] } ], args: undefined, contractAddress: '0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d', formattedArgs: undefined, functionName: 'eip712Domain', sender: undefined, walk: 'Function<walk>' }
Caused by: ContractFunctionZeroDataError: The contract function "eip712Domain" returned no data ("0x").
This could be due to any of the following:
- The contract does not have the function "eip712Domain",
- The parameters passed to the contract function may be invalid, or
- The address is not a contract.
Version: 2.21.6
❯ node_modules/viem/utils/errors/getContractError.ts:57:14
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:70:5
❯ readContract node_modules/viem/actions/public/readContract.ts:136:11
❯ Module.getAccountDomainStructFields packages/sdk/account/utils/Utils.ts:314:38
❯ Object.signTypedData packages/sdk/account/toNexusAccount.ts:401:39
❯ Object.signTypedData node_modules/viem/account-abstraction/accounts/toSmartAccount.ts:127:53
❯ packages/sdk/account/toNexusAccount.test.ts:336:28
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "eip712Domain",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.' ], shortMessage: 'The contract function "eip712Domain" returned no data ("0x").', version: '2.21.6', walk: 'Function<walk>' }
|
Run the tests:
packages/sdk/clients/decorators/smartAccount/sendTransaction.ts#L116
UserOperationExecutionError: An error occurred while executing user operation: The method "eth_estimateUserOperationGas" does not exist / is not available.
Request Arguments:
callData: 0xe9ae5c530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000349faf274eb7cc2d342d786ad0995db3c0d641446d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
callGasLimit: 0
factory: 0x976869CF9c5Dd5046b41963EF1bBcE62b5366869
factoryData: 0x0d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
maxFeePerGas: 2.276735216 gwei
maxPriorityFeePerGas: 2 gwei
nonce: 10987201937372157033502736611439307615691314493171270107564146163712
preVerificationGas: 0
sender: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d
signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006854688d3D9A87a33Addd5f4deB5cea1B97fa5b7000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000
verificationGasLimit: 0
Details: Method not found
Version: 2.21.6
❯ getUserOperationError node_modules/viem/account-abstraction/utils/errors/getUserOperationError.ts:68:10
❯ estimateUserOperationGas node_modules/viem/account-abstraction/actions/bundler/estimateUserOperationGas.ts:186:11
❯ prepareUserOperation node_modules/viem/account-abstraction/actions/bundler/prepareUserOperation.ts:559:19
❯ sendUserOperation node_modules/viem/account-abstraction/actions/bundler/sendUserOperation.ts:132:7
❯ Module.sendTransaction packages/sdk/clients/decorators/smartAccount/sendTransaction.ts:116:18
❯ packages/sdk/clients/createNexusClient.test.ts:80:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Method not found', docsPath: undefined, metaMessages: [ 'Request Arguments:', ' callData: 0xe9ae5c530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000349faf274eb7cc2d342d786ad0995db3c0d641446d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\n callGasLimit: 0\n factory: 0x976869CF9c5Dd5046b41963EF1bBcE62b5366869\n factoryData: 0x0d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\n maxFeePerGas: 2.276735216 gwei\n maxPriorityFeePerGas: 2 gwei\n nonce: 10987201937372157033502736611439307615691314493171270107564146163712\n preVerificationGas: 0\n sender: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d\n signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006854688d3D9A87a33Addd5f4deB5cea1B97fa5b7000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000\n verificationGasLimit: 0' ], shortMessage: 'An error occurred while executing user operation: The method "eth_estimateUserOperationGas" does not
|
Run the tests:
packages/sdk/clients/createNexusClient.test.ts#L136
UserOperationExecutionError: An error occurred while executing user operation: The method "eth_estimateUserOperationGas" does not exist / is not available.
Request Arguments:
callData: 0xe9ae5c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003861f70428b61864b38d9b45b7b032c700b960accd0000000000000000000000000000000000000000000000000000000000000000273ea3e30000000000000000
factory: 0x976869CF9c5Dd5046b41963EF1bBcE62b5366869
factoryData: 0x0d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
nonce: 10987201937372157033502736611439307615691314493171270107564146163712
sender: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d
signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006854688d3D9A87a33Addd5f4deB5cea1B97fa5b7000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000
Details: Method not found
Version: 2.21.6
❯ getUserOperationError node_modules/viem/account-abstraction/utils/errors/getUserOperationError.ts:68:10
❯ estimateUserOperationGas node_modules/viem/account-abstraction/actions/bundler/estimateUserOperationGas.ts:186:11
❯ packages/sdk/clients/createNexusClient.test.ts:136:21
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Method not found', docsPath: undefined, metaMessages: [ 'Request Arguments:', ' callData: 0xe9ae5c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003861f70428b61864b38d9b45b7b032c700b960accd0000000000000000000000000000000000000000000000000000000000000000273ea3e30000000000000000\n factory: 0x976869CF9c5Dd5046b41963EF1bBcE62b5366869\n factoryData: 0x0d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\n nonce: 10987201937372157033502736611439307615691314493171270107564146163712\n sender: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d\n signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006854688d3D9A87a33Addd5f4deB5cea1B97fa5b7000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000' ], shortMessage: 'An error occurred while executing user operation: The method "eth_estimateUserOperationGas" does not exist / is not available.', version: '2.21.6', walk: 'Function<walk>' }
Caused by: UnknownBundlerError: An error occurred while executing user operation: The method "eth_estimateUserOperationGas" does not exist / is not available.
Details: Method not found
Version: 2.21.6
❯ getBundlerError node_modules/viem/account-abstraction/utils/errors/getBundlerError.ts:306:10
❯ node_modules/viem/account-abstraction/utils/errors/getUserOperationError.ts:54:19
❯ getUserOperationError node_modules/viem/account-abstraction/utils/errors/getUserOperationError.ts:67:5
❯ estimateUserOperationGas node_modules/viem/account-abstraction/actions/bundler/estimateUserOperationGas.ts:186:11
❯ packages/sdk/clients/createNexusClient.test.ts:13
|
Run the tests:
packages/sdk/clients/createNexusClient.test.ts#L175
UserOperationExecutionError: An error occurred while executing user operation: The method "eth_estimateUserOperationGas" does not exist / is not available.
Request Arguments:
callData: 0xe9ae5c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003470997970c51812dc3a010c7d01b50e0d17dc79c80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
callGasLimit: 0
factory: 0x976869CF9c5Dd5046b41963EF1bBcE62b5366869
factoryData: 0x0d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
maxFeePerGas: 2.242191744 gwei
maxPriorityFeePerGas: 2 gwei
nonce: 10987201937372157033502736611439307615691314493171270107564146163712
preVerificationGas: 0
sender: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d
signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006854688d3D9A87a33Addd5f4deB5cea1B97fa5b7000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000
verificationGasLimit: 0
Details: Method not found
Version: 2.21.6
❯ getUserOperationError node_modules/viem/account-abstraction/utils/errors/getUserOperationError.ts:68:10
❯ estimateUserOperationGas node_modules/viem/account-abstraction/actions/bundler/estimateUserOperationGas.ts:186:11
❯ prepareUserOperation node_modules/viem/account-abstraction/actions/bundler/prepareUserOperation.ts:559:19
❯ packages/sdk/clients/createNexusClient.test.ts:175:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Method not found', docsPath: undefined, metaMessages: [ 'Request Arguments:', ' callData: 0xe9ae5c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003470997970c51812dc3a010c7d01b50e0d17dc79c80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\n callGasLimit: 0\n factory: 0x976869CF9c5Dd5046b41963EF1bBcE62b5366869\n factoryData: 0x0d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\n maxFeePerGas: 2.242191744 gwei\n maxPriorityFeePerGas: 2 gwei\n nonce: 10987201937372157033502736611439307615691314493171270107564146163712\n preVerificationGas: 0\n sender: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d\n signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006854688d3D9A87a33Addd5f4deB5cea1B97fa5b7000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000\n verificationGasLimit: 0' ], shortMessage: 'An error occurred while executing user operation: The method "eth_estimateUserOperationGas" does not exist / is not available.', version: '2.21.6', walk: 'Function<walk>' }
Caused by: UnknownBundlerError: An error occurred while executing user operation: The method "eth_estimateUserOperationGas" do
|
Run the tests:
packages/sdk/clients/decorators/smartAccount/sendTransaction.ts#L116
UserOperationExecutionError: An error occurred while executing user operation: The method "eth_estimateUserOperationGas" does not exist / is not available.
Request Arguments:
callData: 0xe9ae5c5301000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000070997970c51812dc3a010c7d01b50e0d17dc79c800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070997970c51812dc3a010c7d01b50e0d17dc79c8000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
callGasLimit: 0
factory: 0x976869CF9c5Dd5046b41963EF1bBcE62b5366869
factoryData: 0x0d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
maxFeePerGas: 2.242191744 gwei
maxPriorityFeePerGas: 2 gwei
nonce: 10987201937372157033502736611439307615691314493171270107564146163712
preVerificationGas: 0
sender: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d
signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006854688d3D9A87a33Addd5f4deB5cea1B97fa5b7000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000
verificationGasLimit: 0
Details: Method not found
Version: 2.21.6
❯ getUserOperationError node_modules/viem/account-abstraction/utils/errors/getUserOperationError.ts:68:10
❯ estimateUserOperationGas node_modules/viem/account-abstraction/actions/bundler/estimateUserOperationGas.ts:186:11
❯ prepareUserOperation node_modules/viem/account-abstraction/actions/bundler/prepareUserOperation.ts:559:19
❯ sendUserOperation node_modules/viem/account-abstraction/actions/bundler/sendUserOperation.ts:132:7
❯ Module.sendTransaction packages/sdk/clients/decorators/smartAccount/sendTransaction.ts:116:18
❯ packages/sdk/clients/createNexusClient.test.ts:256:18
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Method not found', docsPath: undefined, metaMessages: [ 'Request Arguments:', ' callData: 0xe9ae5c5301000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000070997970c51812dc3a010c7d01b50e0d17dc79c800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070997970c51812dc3a010c7d01b50e0d17dc79c8000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000\n
|
Run the tests:
packages/sdk/clients/decorators/erc7579/erc7579.actions.test.ts#L63
ContractFunctionExecutionError: The contract function "getValidatorsPaginated" returned no data ("0x").
This could be due to any of the following:
- The contract does not have the function "getValidatorsPaginated",
- The parameters passed to the contract function may be invalid, or
- The address is not a contract.
Contract Call:
address: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d
function: getValidatorsPaginated(address cursor, uint256 size)
args: (0x0000000000000000000000000000000000000001, 100)
Docs: https://viem.sh/docs/contract/readContract
Version: 2.21.6
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/viem/actions/public/readContract.ts:136:11
❯ packages/sdk/clients/decorators/erc7579/erc7579.actions.test.ts:63:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "getValidatorsPaginated",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.', ' ', 'Contract Call:', ' address: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d\n function: getValidatorsPaginated(address cursor, uint256 size)\n args: (0x0000000000000000000000000000000000000001, 100)' ], shortMessage: 'The contract function "getValidatorsPaginated" returned no data ("0x").', version: '2.21.6', abi: [ { inputs: [ { internalType: 'address', name: 'cursor', type: 'address' }, { internalType: 'uint256', name: 'size', type: 'uint256' } ], name: 'getValidatorsPaginated', outputs: [ { internalType: 'address[]', name: 'array', type: 'address[]' }, { internalType: 'address', name: 'next', type: 'address' } ], stateMutability: 'view', type: 'function' } ], args: [ '0x0000000000000000000000000000000000000001', 100n ], contractAddress: '0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d', formattedArgs: undefined, functionName: 'getValidatorsPaginated', sender: undefined, walk: 'Function<walk>' }
Caused by: ContractFunctionZeroDataError: The contract function "getValidatorsPaginated" returned no data ("0x").
This could be due to any of the following:
- The contract does not have the function "getValidatorsPaginated",
- The parameters passed to the contract function may be invalid, or
- The address is not a contract.
Version: 2.21.6
❯ node_modules/viem/utils/errors/getContractError.ts:57:14
❯ getContractError node_modules/viem/utils/errors/getContractError.ts:70:5
❯ readContract node_modules/viem/actions/public/readContract.ts:136:11
❯ packages/sdk/clients/decorators/erc7579/erc7579.actions.test.ts:63:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "getValidatorsPaginated",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.' ], shortMessage: 'The contract function "getValidatorsPaginated" returned no data ("0x").', version: '2.21.6', walk: 'Function<walk>' }
|
Run the tests:
packages/sdk/clients/decorators/smartAccount/erc7579.actions.test.ts#L58
AssertionError: expected '0x000000000000000000000000976869cf9c5…' to deeply equal '0x6854688d3d9a87a33addd5f4deb5cea1b97…'
- Expected
+ Received
- 0x6854688d3d9a87a33addd5f4deb5cea1b97fa5b7f16ea9a3478698f695fd1401bfe27e9e4a7e8e3da94aa72b021125e31fa899cc573c48ea3fe1d4ab61a9db10c19032026e3ed2dbccba5a178235ac27f94504311c
+ 0x000000000000000000000000976869cf9c5dd5046b41963ef1bbce62b53668690000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a40d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb9226600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000976869cf9c5dd5046b41963ef1bbce62b53668690000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a40d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb9226600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000556854688d3d9a87a33addd5f4deb5cea1b97fa5b7f16ea9a3478698f695fd1401bfe27e9e4a7e8e3da94aa72b021125e31fa899cc573c48ea3fe1d4ab61a9db10c19032026e3ed2dbccba5a178235ac27f94504311c000000000000000000000064926492649264926492649264926492649264926492649264926492649264926492649264926492649264926492649264926492649264926492649264926492
❯ packages/sdk/clients/decorators/smartAccount/erc7579.actions.test.ts:58:27
|
Run the tests:
packages/sdk/clients/decorators/smartAccount/sendTransaction.ts#L116
UserOperationExecutionError: An error occurred while executing user operation: The method "eth_estimateUserOperationGas" does not exist / is not available.
Request Arguments:
callData: 0xe9ae5c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003470997970c51812dc3a010c7d01b50e0d17dc79c80000000000000000000000000000000000000000000000000000000000000001000000000000000000000000
callGasLimit: 0
factory: 0x976869CF9c5Dd5046b41963EF1bBcE62b5366869
factoryData: 0x0d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
maxFeePerGas: 2.276735216 gwei
maxPriorityFeePerGas: 2 gwei
nonce: 10987201937372157033502736611439307615691314493171270107564146163712
preVerificationGas: 0
sender: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d
signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006854688d3D9A87a33Addd5f4deB5cea1B97fa5b7000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000
verificationGasLimit: 0
Details: Method not found
Version: 2.21.6
❯ getUserOperationError node_modules/viem/account-abstraction/utils/errors/getUserOperationError.ts:68:10
❯ estimateUserOperationGas node_modules/viem/account-abstraction/actions/bundler/estimateUserOperationGas.ts:186:11
❯ prepareUserOperation node_modules/viem/account-abstraction/actions/bundler/prepareUserOperation.ts:559:19
❯ sendUserOperation node_modules/viem/account-abstraction/actions/bundler/sendUserOperation.ts:132:7
❯ Module.sendTransaction packages/sdk/clients/decorators/smartAccount/sendTransaction.ts:116:18
❯ packages/sdk/clients/decorators/smartAccount/erc7579.actions.test.ts:101:18
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: 'Method not found', docsPath: undefined, metaMessages: [ 'Request Arguments:', ' callData: 0xe9ae5c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003470997970c51812dc3a010c7d01b50e0d17dc79c80000000000000000000000000000000000000000000000000000000000000001000000000000000000000000\n callGasLimit: 0\n factory: 0x976869CF9c5Dd5046b41963EF1bBcE62b5366869\n factoryData: 0x0d51f0b7000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\n maxFeePerGas: 2.276735216 gwei\n maxPriorityFeePerGas: 2 gwei\n nonce: 10987201937372157033502736611439307615691314493171270107564146163712\n preVerificationGas: 0\n sender: 0x9faF274EB7cc2D342d786Ad0995dB3c0d641446d\n signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006854688d3D9A87a33Addd5f4deB5cea1B97fa5b7000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000\n verificationGasLimit: 0' ], shortMessage: 'An error occurred while executing user operation: The method "eth_estimateUser
|
Loading