create env file and set ZERODEV_MODE_ID
& CAB_PAYMASTER_RPC
cp .env.example .env
bun install
-
Run session sample
ts-node session.ts
-
Run cab sample
-
Run cab-worker
Note: Add
MODE_API_KEY
in .env -
Run cab-server Note: Add
ZERODEV_MODE_API_KEY
in .env -
Run cab sample
ts-node cab.ts
-
Throw the error when decoding account with useMetaFactory=false
/Users/justintesng/Desktop/projects/testing/zerodev/cab-mode/node_modules/viem/utils/abi/decodeFunctionData.ts:67
throw new AbiFunctionSignatureNotFoundError(signature, {
^
AbiFunctionSignatureNotFoundError: Encoded function signature "0xea6d13ac" not found on ABI.
Make sure you are using the correct ABI and that the function exists on it.
You can look up the signature here: https://openchain.xyz/signatures?query=0xea6d13ac.
Docs: https://viem.sh/docs/contract/decodeFunctionData
Version: [email protected]
at decodeFunctionData (/Users/justintesng/Desktop/projects/testing/zerodev/cab-mode/node_modules/viem/utils/abi/decodeFunctionData.ts:67:11)
at decodeParamsFromInitCode (/Users/justintesng/Desktop/projects/testing/zerodev/cab-mode/node_modules/@zerodev/permissions/deserializePermissionAccount.ts:136:61)
at deserializePermissionAccount (/Users/justintesng/Desktop/projects/testing/zerodev/cab-mode/node_modules/@zerodev/permissions/deserializePermissionAccount.ts:87:66)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async main (/Users/justintesng/Desktop/projects/testing/zerodev/cab-mode/session.ts:67:41) {
details: undefined,
docsPath: '/docs/contract/decodeFunctionData',
metaMessages: undefined,
shortMessage: 'Encoded function signature "0xea6d13ac" not found on ABI.\n' +
'Make sure you are using the correct ABI and that the function exists on it.\n' +
'You can look up the signature here: https://openchain.xyz/signatures?query=0xea6d13ac.',
version: '[email protected]'
}