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.

Not able to use a different `from` account for upgrades.upgradeProxy

See original GitHub issue

According to the documentation, one should be able to upgrade a Proxy contract to a new logic contract via:

  const newProxy = await upgrades.upgradeProxy(proxy.address, newMain, { deployer })

However, I’ve tried changing deployer to a different account, and the caller of the transaction is always the same. I’m using hardhat, not truffle.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
frangiocommented, Jul 1, 2021

Yes, for example in hardhat.config.js:

module.exports = {
  networks: {
    rinkeby: {
      from: '0x....',
    },
  },
};
0reactions
frangiocommented, Dec 3, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Execute upgrade using different signer - OpenZeppelin Forum
Not able to use a different `from` account for upgrades.upgradeProxy ... According to the documentation, one should be able to upgrade a Proxy ......
Read more >
plugin-hardhat upgradeProxy upgradeTo call doesnt await ...
I'm deploying a proxy contract and its implementation using "deployProxy" instruction but I get a "Timed out waiting for transaction" error. I ...
Read more >
Using the UUPS proxy pattern to upgrade smart contracts
UUPS is a gas-efficient proxy pattern that allows underlying logic to be upgraded when needed, without losing previous data.
Read more >
How to Make A Contract Upgradeable via OpenZeppelin Proxies
Learn how to use proxies to upgrade contracts! ... You will be able to deploy a version 1 contract, add new functionality and...
Read more >
Web3 Tutorial: write upgradeable smart contract (proxy) using ...
If you transfer ProxyAmin ownership to a multi-sig account, the authority to upgrade the Proxy contract (link proxy to new implementation) is ...
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