alto icon indicating copy to clipboard operation
alto copied to clipboard

Running Alto in Prod

Open Brianspha opened this issue 9 months ago • 3 comments

Hello,

I would like to ask if it's advisable to run Alto in production using the unsafe mode, I'm asking because we have been trying to get Alto to work by sending mint operation using the lightAccount but the bundler seems to revert it only works in unsafe mode is there something I'm doing wrong?

e.g. callData

  const callData = await lightAccount.encodeCallData({
    to: deployments.TestToken,
    data: encodeFunctionData({
      abi: ERC20_ABI,
      args: [
        lightAccount.address,
        new BigNumber(2).multipliedBy(10 ** 18).toFixed(0),
      ],
      functionName: "mint",
    }),
    value: 0n,
  });

Then we use a paymaster the estimateUserOperationGas endpoint manages to estimate gas but when we send the user operation we get issues the bundler errors out with a response

{"message":"Cannot read properties of undefined (reading 'slice')"}

Brianspha avatar May 17 '24 01:05 Brianspha