feat: add switching for executeUserOp #5302
on-pull-request.yml
on: pull_request
Enforce PR Title Format
2m 15s
Lint
3m 4s
Build and Test
2m 35s
Annotations
2 errors and 5 warnings
src/ma-v2/client/client.test.ts > MA v2 Tests > sends a simple UO:
account-kit/smart-contracts/src/ma-v2/account/account.ts#L199
ContractFunctionExecutionError: The contract function "getValidationData" returned no data ("0x").
This could be due to any of the following:
- The contract does not have the function "getValidationData",
- The parameters passed to the contract function may be invalid, or
- The address is not a contract.
Contract Call:
address: 0x90237A7C77744090Ec13602D968c9B18600F1027
function: getValidationData(bytes24 validationFunction)
args: (0x000000000000000000000000000000000000000000000000)
Docs: https://viem.sh/docs/contract/readContract
Version: 2.20.0
❯ getContractError ../../node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract ../../node_modules/viem/actions/public/readContract.ts:136:11
❯ getValidationData src/ma-v2/account/account.ts:199:12
❯ encodeCallData src/ma-v2/account/account.ts:208: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 "getValidationData",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.', ' ', 'Contract Call:', ' address: 0x90237A7C77744090Ec13602D968c9B18600F1027\n function: getValidationData(bytes24 validationFunction)\n args: (0x000000000000000000000000000000000000000000000000)' ], shortMessage: 'The contract function "getValidationData" returned no data ("0x").', version: '2.20.0', abi: [ { type: 'constructor', inputs: [ { name: 'entryPoint', type: 'address', internalType: 'contract IEntryPoint' }, { name: 'executionInstallDelegate', type: 'address', internalType: 'contract ExecutionInstallDelegate' } ], stateMutability: 'nonpayable' }, { type: 'fallback', stateMutability: 'payable' }, { type: 'receive', stateMutability: 'payable' }, { type: 'function', name: 'accountId', inputs: [], outputs: [ { name: '', type: 'string', internalType: 'string' } ], stateMutability: 'pure' }, { type: 'function', name: 'entryPoint', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'contract IEntryPoint' } ], stateMutability: 'view' }, { type: 'function', name: 'execute', inputs: [ { name: 'target', type: 'address', internalType: 'address' }, { name: 'value', type: 'uint256', internalType: 'uint256' }, { name: 'data', type: 'bytes', internalType: 'bytes' } ], outputs: [ { name: 'result', type: 'bytes', internalType: 'bytes' } ], stateMutability: 'payable' }, { type: 'function', name: 'executeBatch', inputs: [ { name: 'calls', type: 'tuple[]', internalType: 'struct Call[]', components: [ { name: 'target', type: 'address', internalType: 'address' }, { name: 'value', type: 'uint256', internalType: 'uint256' }, { name: 'data', type: 'bytes', internalType: 'bytes' } ] } ], outputs: [ { name: 'results', type: 'bytes[]', internalType: 'bytes[]' } ], stateMutability: 'payable' }, { type: 'function', name: 'executeUserOp', inputs: [ { name: 'userOp', type: 'tuple', internalType: 'struct PackedUserOperation', components: [ { name: 'sender', type: 'address', internalType: 'address' }, { name: 'nonce', type: 'uint256', internalType: 'uint256' }, { name: 'initCode', type: 'bytes', internalType: 'bytes' }, { name: 'callData', type: 'bytes', internalType: 'bytes' }, { name: 'accountGasLimits', type: 'bytes32', internalType: 'bytes32' }, { name: 'preVerificationGas', type: 'uint256', internalType: 'uint256' }, { name: 'gasFees', type: 'bytes32', internalType: 'bytes32' }, { name: 'paymasterAndData', type: 'bytes', internalType: 'bytes' }, { name: 'signature', type: 'bytes', internalType: 'bytes' } ] }, { name: '', type: 'bytes32', internalType: 'bytes32' } ], outputs: [], stateMutability: 'nonpayable' }, { type: 'function', name: 'executeWithRuntimeValidation', inputs: [ { name: 'data', type: 'bytes', internalType: 'bytes' }, { name: 'authorization', type: 'bytes', internalType: 'bytes' } ], outputs: [ { name: '', type: 'bytes', internalType: 'bytes' } ], stateMutability: 'payable' }, { type: 'f
|
Build and Test
Process completed with exit code 1.
|
Enforce PR Title Format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Build and Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint:
account-kit/rn-signer/example/src/screens/Home.tsx#L56
React Hook useEffect has a missing dependency: 'signer'. Either include it or remove the dependency array
|
Lint:
account-kit/rn-signer/example/src/screens/Home.tsx#L63
React Hook useEffect has a missing dependency: 'handleIncomingURL'. Either include it or remove the dependency array
|