solidity hardhat 里使用openzepplin的uups模式升级

proxy = (await upgrades.upgradeProxy(auction.address, Auction));

上面的代码是使用openzepplin的uups模式升级,我在hardhat内部网络写单测的时候,这个upgradeProxy方法发起的交易的from字段始终是hardhat内部网络的默认地址,我想修改一下交易发起地址,怎么改?

请先 登录 后评论

1 个回答

Tiny熊
  擅长:智能合约,以太坊
请先 登录 后评论
  • 1 关注
  • 0 收藏,1581 浏览
  • ys111 提出于 2023-04-03 18:52