Skip to content

Commit

Permalink
rm duplicate initilization of bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
tsnewnami committed Nov 14, 2023
1 parent 319d0a1 commit abc3cab
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions script/DeployChildContracts.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,7 @@ contract DeployChildContracts is Script {
ChildERC20 childTokenTemplate = new ChildERC20();
childTokenTemplate.initialize(address(123), "TEMPLATE", "TPT", 18);

IChildERC20Bridge.InitializationRoles memory roles = IChildERC20Bridge.InitializationRoles({
defaultAdmin: address(0x1111),
pauser: address(0x2222),
unpauser: address(0x3333),
variableManager: address(0x4444),
adaptorManager: address(0x5555)
});

ChildERC20Bridge childERC20BridgeImplementation = new ChildERC20Bridge();
childERC20BridgeImplementation.initialize(
roles, address(1), "0x123", address(1), "root", address(1), address(wrappedIMX)
);

TransparentUpgradeableProxy childERC20BridgeProxy = new TransparentUpgradeableProxy(
address(childERC20BridgeImplementation),
Expand Down

0 comments on commit abc3cab

Please sign in to comment.