Skip to content

When i tends to create an contract account from the code-examples it giving me this error #212

@Janus-chan

Description

@Janus-chan

D:\HOPE\zerodev-examples\node_modules\viem\utils\rpc\http.ts:148
throw new HttpRequestError({
^
HttpRequestError: HTTP request failed.

Status: 400
URL: https://rpc.zerodev.app/api/v2/paymaster/24983aaa-17ef-44bb-8989-c73d6351878f
Request body: {"method":"zd_sponsorUserOperation","params":[{"chainId":11155111,"userOp":{"callData":"0xe9ae5c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","sender":"0x489c6d20c72115d993Abb237bCa26e35Adc0406F","factory":"0xd703aaE79538628d27099B8c4f621bE4CCd142d5","factoryData":"0xc5265d5d000000000000000000000000aac5d4240af87249b3f71bc8e4a2cae074a3e4190000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001243c3b752b01845ADb2C711129d4f3966735eD98a9F09fC4cE570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000146e99Aa04BbC0BCcb479eb5d18633718044dB7f240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","maxFeePerGas":"0x7ba92a7","maxPriorityFeePerGas":"0x7735940","nonce":"0x845adb2c711129d4f3966735ed98a9f09fc4ce5700000000000000000000","signature":"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c"},"entryPointAddress":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","shouldOverrideFee":false,"shouldConsume":true}]}

Details: "userOp did not match any gas sponsoring policies or (no ERC20 gas token data present)"
Version: [email protected]
at Object.request (D:\HOPE\zerodev-examples\node_modules\viem\utils\rpc\http.ts:148:17)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async fn (D:\HOPE\zerodev-examples\node_modules\viem\clients\transports\http.ts:129:19)
at async request (D:\HOPE\zerodev-examples\node_modules\viem\clients\transports\http.ts:134:39)
at async delay.count.count (D:\HOPE\zerodev-examples\node_modules\viem\utils\buildRequest.ts:129:22)
at async attemptRetry (D:\HOPE\zerodev-examples\node_modules\viem\utils\promise\withRetry.ts:44:22) {
details: '"userOp did not match any gas sponsoring policies or (no ERC20 gas token data present)"',
docsPath: undefined,
metaMessages: [
'Status: 400',
'URL: https://rpc.zerodev.app/api/v2/paymaster/24983aaa-17ef-44bb-8989-c73d6351878f',
'Request body: {"method":"zd_sponsorUserOperation","params":[{"chainId":11155111,"userOp":{"callData":"0xe9ae5c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","sender":"0x489c6d20c72115d993Abb237bCa26e35Adc0406F","factory":"0xd703aaE79538628d27099B8c4f621bE4CCd142d5","factoryData":"0xc5265d5d000000000000000000000000aac5d4240af87249b3f71bc8e4a2cae074a3e4190000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001243c3b752b01845ADb2C711129d4f3966735eD98a9F09fC4cE570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000146e99Aa04BbC0BCcb479eb5d18633718044dB7f240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","maxFeePerGas":"0x7ba92a7","maxPriorityFeePerGas":"0x7735940","nonce":"0x845adb2c711129d4f3966735ed98a9f09fc4ce5700000000000000000000","signature":"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c"},"entryPointAddress":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","shouldOverrideFee":false,"shouldConsume":true}]}'
],
shortMessage: 'HTTP request failed.',
version: '2.22.15',
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
[Symbol(headers list)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
},
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
[Symbol(headers list)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
[Symbol(headers list)]: HeadersList {
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
[Symbol(headers list)]: HeadersList {
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
[Symbol(headers list)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
},
[Symbol(guard)]: 'immutable',
[Symbol(realm)]: null
},
status: 400,
url: 'https://rpc.zerodev.app/api/v2/paymaster/24983aaa-17ef-44bb-8989-c73d6351878f'
}
PS D:\HOPE\zerodev-examples>

body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
[Symbol(headers list)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
},
[Symbol(guard)]: 'immutable',
[Symbol(realm)]: null
},
status: 400,
url: 'https://rpc.zerodev.app/api/v2/paymaster/24983aaa-17ef-44bb-8989-c73d6351878f'
}
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
[Symbol(headers list)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
},
[Symbol(guard)]: 'immutable',
[Symbol(realm)]: null
},
status: 400,
url: 'https://rpc.zerodev.app/api/v2/paymaster/24983aaa-17ef-44bb-8989-c73d6351878f'
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
[Symbol(headers list)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
},
[Symbol(guard)]: 'immutable',
[Symbol(realm)]: null
},
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
[Symbol(headers list)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
},
[Symbol(guard)]: 'immutable',
body: { method: 'zd_sponsorUserOperation', params: [ [Object] ] },
headers: Headers {
[Symbol(headers list)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
},
[Symbol(guard)]: 'immutable',
[Symbol(realm)]: null
},
status: 400,
url: 'https://rpc.zerodev.app/api/v2/paymaster/24983aaa-17ef-44bb-8989-c73d6351878f'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions