本文环境:
操作系统:Windows 11家庭版(64 位)
测试工具:Remix IDE:http://remix.app.hubwiz.com/ + MetaMask 7.7.9
一、合约源码
openzeppelin中的合约源码:
1.1 ProxyAdmin.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/transparent/ProxyAdmin.sol)
pragma solidity ^0.8.0;
import "./TransparentUpgradeableProxy.sol";
import "../../access/Ownable.sol";
/**
* @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an
* explanation o