constructor(address _logic, address admin_, bytes memory _data) payable ERC1967Proxy(_logic, _data) {
assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
_changeAdmin(admin_);
Anyone knows what should be the value for _data or can provide any reference? //TransparentUpgradeableProxy is ERC1967Proxy
Feb 18, 2022, 5:06 PM
From the documentation:
If _data is nonempty, it’s used as data in a delegate call to _logic. This will typically be an encoded function call, and allows initializating the storage of the proxy like a Solidity constructor.
If _data is nonempty, it’s used as data in a delegate call to _logic. This will typically be an encoded function call, and allows initializating the storage of the proxy like a Solidity constructor.
https://docs.openzeppelin.com/contracts/4.x/api/proxy
Feb 18, 2022, 5:30 PM
Thanks, worked.
Feb 18, 2022, 6:23 PM