Skip to content

Relay x ERC-4337 smart wallets issue #710

@15august

Description

@15august

Hi! I have problem with exectuion quote with privy evm smart wallets.

Setup:

  • privy smart wallets, Kernel type(zero dev)
  • pimlico paymaster and bundler
  • relay sdk

my code:
https://gist.github.com/15august/0eb9b1660e2942df2ffff63ba99e717b

situation:
when i trying execute code, I get the error of execution:
https://gist.github.com/15august/93ffccb726b63915c0c11e60aee2f659


P.s before i tried code with value

const result = await smartWallet.sendTransaction({
          to: txData.to as `0x${string}`,
          data: (txData.data as `0x${string}`) || '0x',
           //value <-
          // Gas fields are typically handled by the bundler/paymaster
        });

but pimlico bundler raised error, value should be 0 on erc20 transfers, since they only cover gas
So now, I removed value and/or tried to sety it always 0

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