feat: add native signer, implement signMessage and signTypedData #5389
Annotations
2 errors and 1 warning
Unit Test:
account-kit/smart-contracts/src/ma-v2/client/client.test.ts#L230
ContractFunctionExecutionError: The contract function "isValidSignature" reverted with the following reason:
Attempted to convert to an invalid type.
Contract Call:
address: 0x65b5DE0251f553B2208762a4724303E750294D96
function: isValidSignature(bytes32 hash, bytes signature)
args: (0x1c37b8e52b87629910dcc67dc45e49972920b01bf8828ac1410cf66b80471ce4, 0x0000000000FF3317c1406ca1a4edabfc1607c805ade9b7faf27a80077eb14e7b0aa1fbcd5ab361ae0170d86a2fe4e0f4a2832def9240bf9f93af02e6b630f6b67bbda4f790501c)
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
❯ src/ma-v2/client/client.test.ts:230:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'Contract Call:', ' address: 0x65b5DE0251f553B2208762a4724303E750294D96\n function: isValidSignature(bytes32 hash, bytes signature)\n args: (0x1c37b8e52b87629910dcc67dc45e49972920b01bf8828ac1410cf66b80471ce4, 0x0000000000FF3317c1406ca1a4edabfc1607c805ade9b7faf27a80077eb14e7b0aa1fbcd5ab361ae0170d86a2fe4e0f4a2832def9240bf9f93af02e6b630f6b67bbda4f790501c)' ], shortMessage: 'The contract function "isValidSignature" reverted with the following reason:\nAttempted to convert to an invalid type.', 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: 'function', name: 'getExecutionData', inputs: [ { name: 'selector', type: 'bytes4', inte
|
Unit Test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading