question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

plugin-hardhat upgradeProxy upgradeTo call doesnt await receipt

See original GitHub issue

Weve largely had success with manual one off upgrades until when we started to script multiple upgrades at a time and kept getting

ProviderError: Transaction gas price supplied is too low. There is another transaction with same nonce in the queue. Try increasing the gas price or incrementing the nonce.

Adding an await receipt.wait(); after upgradeTo seemed to fix it for us https://github.com/OpenZeppelin/openzeppelin-upgrades/blob/master/packages/plugin-hardhat/src/upgrade-proxy.ts#L37

But it seems like the codebase should be combed for other receipts it might be eating?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
frangiocommented, Jul 6, 2021

If you’re using transparent proxies (the default) you need to call the upgrade function of the ProxyAdmin contract. You can find the admin address in your .openzeppelin/mainnet.json file (or other network).

0reactions
frangiocommented, Nov 25, 2021

@joaquinperea You’re not doing anything wrong. If it times out, you can retry the same deployProxy function call and it will resume waiting for the same transaction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenZeppelin Hardhat Upgrades API
Creates a UUPS or Transparent proxy given an ethers contract factory to use as implementation, and returns a contract instance with the proxy...
Read more >
Starknet Hardhat Plugin - Community - StarkNet Community Forum
This is a topic for issues, requests and news on Starknet Hardhat Plugin. ... await contract.invoke("increase_balance", { amount: 10 }); const receipt ......
Read more >
shardlabs/starknet-hardhat-plugin - npm
invoke (contract, "increase_balance", { amount: 10 }); const receipt = await starknet.getTransactionReceipt(txHash); const decodedEvents = ...
Read more >
shadows-hardhat-deploy - npm Package Health Analysis - Snyk
Hardhat Plugin For Replicable Deployments And Tests For more information ... proxy deployment with ability to upgrade them transparently, ...
Read more >
Upgrading Smart Contracts - Should You Do it and How?
We won't dive into it all the variations, but the OpenZeppelin Upgrades plugin uses the transparent proxy pattern pattern, which you can ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found