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

Passing the correct address for msg_sender to simulateTx causes unexpected error #11278

Open
critesjosh opened this issue Jan 16, 2025 · 0 comments

Comments

@critesjosh
Copy link
Contributor

I would expect passing the correct AztecAddress to simulateTx to succeed, but it fails. Passing undefined instead works.

    const simulated = await account.simulateTx(
        txRequest,
        true, // simulatePublic
        undefined, // fails with account.getAddress(),
        false, // skipTxValidation
    );

Error:

aztec-1     | [19:17:22.189] ERROR: pxe:service Error: Error: Circuit execution failed: Users cannot set msg_sender in first call

Reproduce with this code.

  • clone the repo and install deps (yarn)
  • start the sandbox (version 0.69.1 with that code)
  • run yarn deploy

h/t @olehmisar

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

1 participant