plugin-hardhat upgradeProxy upgradeTo call doesnt await receipt
See original GitHub issueWeve 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:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you’re using transparent proxies (the default) you need to call the
upgrade
function of theProxyAdmin
contract. You can find theadmin
address in your.openzeppelin/mainnet.json
file (or other network).@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.