feat: smart account v2 client #101
Annotations
6 errors and 1 warning
tests/account.test.ts > Biconomy Smart Account V2 EP v6 tests > Should send an empty tx:
tests/account.test.ts#L79
EstimateUserOperationGasError: The smart account 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc nonce is invalid.
Nonce sent: 87 (key: 0, sequence: 87)
Possible solutions:
• Verify that you are using the correct nonce for the user operation. The nonce should be the current nonce of the smart account for the selected key. Consider leveraging functions like getAccountNonce.
• Verify that the nonce is formatted correctly.
Docs: https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa25
Estimate Gas Arguments:
sender: 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc
nonce: 87
initCode: 0x
callData: 0x0000189a000000000000000000000000d3c85fdd3695aee3f0a12b3376acd8dc540205490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000021234000000000000000000000000000000000000000000000000000000000000
callGasLimit: 0
verificationGasLimit: 0
preVerificationGas: 0
maxFeePerGas: 1000460
maxPriorityFeePerGas: 1000000
paymasterAndData: 0x
signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32F37F5beA87BDD5374eB2aC54eA8e000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000
entryPoint: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
Details: {"code":-32500,"message":"AA25 invalid account nonce"}
Version: [email protected]
❯ getEstimateUserOperationGasError node_modules/permissionless/utils/errors/getEstimateUserOperationGasError.ts:37:11
❯ estimateUserOperationGas node_modules/permissionless/actions/bundler/estimateUserOperationGas.ts:151:15
❯ prepareUserOperationRequestForEntryPointV06 node_modules/permissionless/actions/smartAccount/prepareUserOperationRequest.ts:211:31
❯ sendUserOperation node_modules/permissionless/actions/smartAccount/sendUserOperation.ts:78:27
❯ sendTransaction node_modules/permissionless/actions/smartAccount/sendTransaction.ts:120:24
❯ tests/account.test.ts:79:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: '{"code":-32500,"message":"AA25 invalid account nonce"}', docsPath: undefined, metaMessages: [ 'Estimate Gas Arguments:', ' sender: 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc\n nonce: 87\n initCode: 0x\n callData: 0x0000189a000000000000000000000000d3c85fdd3695aee3f0a12b3376acd8dc540205490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000021234000000000000000000000000000000000000000000000000000000000000\n callGasLimit: 0\n verificationGasLimit: 0\n preVerificationGas: 0\n maxFeePerGas: 1000460\n maxPriorityFeePerGas: 1000000\n paymasterAndData: 0x\n signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32F37F5beA87BDD5374eB2aC54eA8e000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000\n entryPoint: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789' ], shortMessage: 'The smart account 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc nonce is invalid.\nNonce sent: 87 (key: 0, sequence: 87)\n\nPossible solutions:\n• Verify that you are using the correct nonce for the user operation. The nonce should be the current nonce of the smart account for the selected key. Consider leveraging functions like getAccountNonce.\n• Verify that the nonce is formatted correctly.\n\nDocs: https://docs.pimlico.io/
|
tests/account.test.ts > Biconomy Smart Account V2 EP v6 tests > Should mint an NFT and pay for the gas:
tests/account.test.ts#L94
EstimateUserOperationGasError: The smart account 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc nonce is invalid.
Nonce sent: 87 (key: 0, sequence: 87)
Possible solutions:
• Verify that you are using the correct nonce for the user operation. The nonce should be the current nonce of the smart account for the selected key. Consider leveraging functions like getAccountNonce.
• Verify that the nonce is formatted correctly.
Docs: https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa25
Estimate Gas Arguments:
sender: 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc
nonce: 87
initCode: 0x
callData: 0x0000189a0000000000000000000000001758f42af7026fbbb559dc60ece0de3ef81f665e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002440d097c300000000000000000000000099f3bc8058503960364ef3fdbf6407c9b0bbefcc00000000000000000000000000000000000000000000000000000000
callGasLimit: 0
verificationGasLimit: 0
preVerificationGas: 0
maxFeePerGas: 1000460
maxPriorityFeePerGas: 1000000
paymasterAndData: 0x
signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32F37F5beA87BDD5374eB2aC54eA8e000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000
entryPoint: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
Details: {"code":-32500,"message":"AA25 invalid account nonce"}
Version: [email protected]
❯ getEstimateUserOperationGasError node_modules/permissionless/utils/errors/getEstimateUserOperationGasError.ts:37:11
❯ estimateUserOperationGas node_modules/permissionless/actions/bundler/estimateUserOperationGas.ts:151:15
❯ prepareUserOperationRequestForEntryPointV06 node_modules/permissionless/actions/smartAccount/prepareUserOperationRequest.ts:211:31
❯ sendUserOperation node_modules/permissionless/actions/smartAccount/sendUserOperation.ts:78:27
❯ sendTransaction node_modules/permissionless/actions/smartAccount/sendTransaction.ts:120:24
❯ tests/account.test.ts:94:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: '{"code":-32500,"message":"AA25 invalid account nonce"}', docsPath: undefined, metaMessages: [ 'Estimate Gas Arguments:', ' sender: 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc\n nonce: 87\n initCode: 0x\n callData: 0x0000189a0000000000000000000000001758f42af7026fbbb559dc60ece0de3ef81f665e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002440d097c300000000000000000000000099f3bc8058503960364ef3fdbf6407c9b0bbefcc00000000000000000000000000000000000000000000000000000000\n callGasLimit: 0\n verificationGasLimit: 0\n preVerificationGas: 0\n maxFeePerGas: 1000460\n maxPriorityFeePerGas: 1000000\n paymasterAndData: 0x\n signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32F37F5beA87BDD5374eB2aC54eA8e000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000\n entryPoint: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789' ], shortMessage: 'The smart account 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc nonce is invalid.\nNonce sent: 87 (key: 0, sequence: 87)\n\nPossible solutions:\n• Verify that you are using the correct nonce for the user operation. The nonce should be the current nonce of the smart account for the selected key. Consid
|
tests/account.test.ts > Biconomy Smart Account V2 EP v6 tests > Should build a user operation manually and validate it:
tests/account.test.ts#L109
EstimateUserOperationGasError: The smart account 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc nonce is invalid.
Nonce sent: 87 (key: 0, sequence: 87)
Possible solutions:
• Verify that you are using the correct nonce for the user operation. The nonce should be the current nonce of the smart account for the selected key. Consider leveraging functions like getAccountNonce.
• Verify that the nonce is formatted correctly.
Docs: https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa25
Estimate Gas Arguments:
sender: 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc
nonce: 87
initCode: 0x
callData: 0x0000189a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002440d097c300000000000000000000000099f3bc8058503960364ef3fdbf6407c9b0bbefcc00000000000000000000000000000000000000000000000000000000
callGasLimit: 0
verificationGasLimit: 0
preVerificationGas: 0
maxFeePerGas: 1000460
maxPriorityFeePerGas: 1000000
paymasterAndData: 0x
signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32F37F5beA87BDD5374eB2aC54eA8e000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000
entryPoint: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
Details: {"code":-32500,"message":"AA25 invalid account nonce"}
Version: [email protected]
❯ getEstimateUserOperationGasError node_modules/permissionless/utils/errors/getEstimateUserOperationGasError.ts:37:11
❯ estimateUserOperationGas node_modules/permissionless/actions/bundler/estimateUserOperationGas.ts:151:15
❯ prepareUserOperationRequestForEntryPointV06 node_modules/permissionless/actions/smartAccount/prepareUserOperationRequest.ts:211:31
❯ tests/account.test.ts:109:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: '{"code":-32500,"message":"AA25 invalid account nonce"}', docsPath: undefined, metaMessages: [ 'Estimate Gas Arguments:', ' sender: 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc\n nonce: 87\n initCode: 0x\n callData: 0x0000189a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002440d097c300000000000000000000000099f3bc8058503960364ef3fdbf6407c9b0bbefcc00000000000000000000000000000000000000000000000000000000\n callGasLimit: 0\n verificationGasLimit: 0\n preVerificationGas: 0\n maxFeePerGas: 1000460\n maxPriorityFeePerGas: 1000000\n paymasterAndData: 0x\n signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32F37F5beA87BDD5374eB2aC54eA8e000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000\n entryPoint: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789' ], shortMessage: 'The smart account 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc nonce is invalid.\nNonce sent: 87 (key: 0, sequence: 87)\n\nPossible solutions:\n• Verify that you are using the correct nonce for the user operation. The nonce should be the current nonce of the smart account for the selected key. Consider leveraging functions like getAccountNonce.\n• Verify that the nonce is formatted correctly.\n\nDocs: https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa25', version: '[email protected].
|
tests/account.test.ts > Biconomy Smart Account V2 EP v6 tests > Should send a batch of user ops:
tests/account.test.ts#L148
EstimateUserOperationGasError: The smart account 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc nonce is invalid.
Nonce sent: 87 (key: 0, sequence: 87)
Possible solutions:
• Verify that you are using the correct nonce for the user operation. The nonce should be the current nonce of the smart account for the selected key. Consider leveraging functions like getAccountNonce.
• Verify that the nonce is formatted correctly.
Docs: https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa25
Estimate Gas Arguments:
sender: 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc
nonce: 87
initCode: 0x
callData: 0x00004680000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000020000000000000000000000001758f42af7026fbbb559dc60ece0de3ef81f665e0000000000000000000000001758f42af7026fbbb559dc60ece0de3ef81f665e0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002440d097c300000000000000000000000099f3bc8058503960364ef3fdbf6407c9b0bbefcc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002440d097c3000000000000000000000000fcf6eb210e5fd84d679b14fe170f9ab05c9b21e700000000000000000000000000000000000000000000000000000000
callGasLimit: 0
verificationGasLimit: 0
preVerificationGas: 0
maxFeePerGas: 1000460
maxPriorityFeePerGas: 1000000
paymasterAndData: 0x
signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32F37F5beA87BDD5374eB2aC54eA8e000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000
entryPoint: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
Details: {"code":-32500,"message":"AA25 invalid account nonce"}
Version: [email protected]
❯ getEstimateUserOperationGasError node_modules/permissionless/utils/errors/getEstimateUserOperationGasError.ts:37:11
❯ estimateUserOperationGas node_modules/permissionless/actions/bundler/estimateUserOperationGas.ts:151:15
❯ prepareUserOperationRequestForEntryPointV06 node_modules/permissionless/actions/smartAccount/prepareUserOperationRequest.ts:211:31
❯ sendUserOperation node_modules/permissionless/actions/smartAccount/sendUserOperation.ts:78:27
❯ sendTransactions node_modules/permissionless/actions/smartAccount/sendTransactions.ts:121:24
❯ tests/account.test.ts:148:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: '{"code":-32500,"message":"AA25 invalid account nonce"}', docsPath: undefined, metaMessages: [ 'Estimate Gas Arguments:', ' sender: 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc\n nonce: 87\n initCode: 0x\n callData: 0x00004680000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000020000000000000000000000001758f42af7026fbbb559dc60ece0de3ef81f665e0000000000000000000000001758f42af7026fbbb559dc60ece0de3ef81f665e0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
tests/account.test.ts > Biconomy Smart Account V2 EP v6 tests > Should build a user operation manually and send it:
tests/account.test.ts#L267
EstimateUserOperationGasError: The smart account 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc nonce is invalid.
Nonce sent: 87 (key: 0, sequence: 87)
Possible solutions:
• Verify that you are using the correct nonce for the user operation. The nonce should be the current nonce of the smart account for the selected key. Consider leveraging functions like getAccountNonce.
• Verify that the nonce is formatted correctly.
Docs: https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa25
Estimate Gas Arguments:
sender: 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc
nonce: 87
initCode: 0x
callData: 0x0000189a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002440d097c300000000000000000000000099f3bc8058503960364ef3fdbf6407c9b0bbefcc00000000000000000000000000000000000000000000000000000000
callGasLimit: 0
verificationGasLimit: 0
preVerificationGas: 0
maxFeePerGas: 1000460
maxPriorityFeePerGas: 1000000
paymasterAndData: 0x
signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32F37F5beA87BDD5374eB2aC54eA8e000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000
entryPoint: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
Details: {"code":-32500,"message":"AA25 invalid account nonce"}
Version: [email protected]
❯ getEstimateUserOperationGasError node_modules/permissionless/utils/errors/getEstimateUserOperationGasError.ts:37:11
❯ estimateUserOperationGas node_modules/permissionless/actions/bundler/estimateUserOperationGas.ts:151:15
❯ prepareUserOperationRequestForEntryPointV06 node_modules/permissionless/actions/smartAccount/prepareUserOperationRequest.ts:211:31
❯ tests/account.test.ts:267:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: '{"code":-32500,"message":"AA25 invalid account nonce"}', docsPath: undefined, metaMessages: [ 'Estimate Gas Arguments:', ' sender: 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc\n nonce: 87\n initCode: 0x\n callData: 0x0000189a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002440d097c300000000000000000000000099f3bc8058503960364ef3fdbf6407c9b0bbefcc00000000000000000000000000000000000000000000000000000000\n callGasLimit: 0\n verificationGasLimit: 0\n preVerificationGas: 0\n maxFeePerGas: 1000460\n maxPriorityFeePerGas: 1000000\n paymasterAndData: 0x\n signature: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000001c5b32F37F5beA87BDD5374eB2aC54eA8e000000000000000000000000000000000000000000000000000000000000004181d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b00000000000000000000000000000000000000000000000000000000000000\n entryPoint: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789' ], shortMessage: 'The smart account 0x99F3Bc8058503960364Ef3fDBF6407C9b0BbefCc nonce is invalid.\nNonce sent: 87 (key: 0, sequence: 87)\n\nPossible solutions:\n• Verify that you are using the correct nonce for the user operation. The nonce should be the current nonce of the smart account for the selected key. Consider leveraging functions like getAccountNonce.\n• Verify that the nonce is formatted correctly.\n\nDocs: https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa25', version: '[email protected].
|
coverage
Process completed with exit code 1.
|
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/.
|