Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Alto in Prod #215

Closed
Brianspha opened this issue May 17, 2024 · 4 comments
Closed

Running Alto in Prod #215

Brianspha opened this issue May 17, 2024 · 4 comments

Comments

@Brianspha
Copy link

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')"}

@kristofgazso
Copy link
Contributor

hey! thanks for this — do you know where that error gets thrown?

@Brianspha
Copy link
Author

@Brianspha
Copy link
Author

@kristofgazso any updates on this?

@mouseless0x
Copy link
Member

Hey, there was a issue with our SafeMode for a short period of time but this was addressed in #248 (this patch was included in docker version v1.2.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants