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

Must manually update nonce if deployer address sent TX after last deployment (IGN405) #781

Open
Stumble opened this issue Jun 13, 2024 · 3 comments
Labels
status:needs-more-information There isn't enough information to start working on this issue

Comments

@Stumble
Copy link

Stumble commented Jun 13, 2024

What happened?

IgnitionError: IGN405: The next nonce for "0x...." should be 6, but is 28. Please make sure not to send transactions from "0x..." while running this deployment and try again.

We sent out a few other transactions using the deployment address, and then ignition stuck here. We bypass this issue by manually update the journal.json, changing the last nonce to be 27.

Minimal reproduction steps

Assuming we use address "0xaaa" as deployer.

  1. Use hardhat ignition to deploy a contract A using create2.
  2. Send any transaction from "0xaaa" so that its nonce changed.
  3. Use ignition to deploy a contract B, using the same account.

Search terms

No response

@kanej
Copy link
Member

kanej commented Jun 14, 2024

Hey @Stumble, thanks for the feedback.
Can I check I have understood. Contract A gets deployed, then the deployment account is used to send some transactions, then you use Ignition to deploy Contract B.

Are you deploying Contract B by adding it to the Module you used for deploying Contract A?

@kanej kanej added status:needs-more-information There isn't enough information to start working on this issue and removed status:triaging labels Jun 14, 2024
@bioharz
Copy link

bioharz commented Oct 31, 2024

Same issue, even without create2

@kanej
Copy link
Member

kanej commented Nov 14, 2024

Same issue, even without create2

Hey @bioharz, does your issue match with the steps above?

Minimal reproduction steps

Assuming we use address "0xaaa" as deployer.

Use hardhat ignition to deploy a contract A using create2.
Send any transaction from "0xaaa" so that its nonce changed.
Use ignition to deploy a contract B, using the same account.

Are all of the runs of Ignition against the local Hardhat node or is this against a mainnet/testnet - and which one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs-more-information There isn't enough information to start working on this issue
Projects
Status: No status
Development

No branches or pull requests

3 participants