mirror of
https://github.com/logos-messaging/logos-messaging-rlnv2-contract.git
synced 2026-02-23 23:33:18 +00:00
Add Token Proxy Contract Owner as init input
This commit is contained in:
parent
0926db7ac3
commit
7c45fa5c83
@ -17,11 +17,11 @@ contract DeployTokenWithProxy is BaseScript {
|
||||
// Deploy proxy admin
|
||||
admin = address(new ProxyAdmin());
|
||||
|
||||
// Deploy the proxy with empty initialization data
|
||||
proxy = address(new TransparentUpgradeableProxy(implementation, admin, ""));
|
||||
// Encode the transferOwnership call as initialization data
|
||||
bytes memory initData = abi.encodeWithSignature("transferOwnership(address)", broadcaster);
|
||||
|
||||
// Transfer ownership to the broadcaster (deployer)
|
||||
TestStableToken(proxy).transferOwnership(broadcaster);
|
||||
// Deploy the proxy with initialization data to set ownership
|
||||
proxy = address(new TransparentUpgradeableProxy(implementation, admin, initData));
|
||||
|
||||
return (proxy, implementation, admin);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user