Skip to content

Commit 0cac6be

Browse files
authored
Merge pull request #103 from axieinfinity/implement-feature/fix-deploy-proxy/fix-deploy-proxy
feat(fix-deploy-proxy): implement `fix-deploy-proxy`
2 parents bb0fce1 + 9408349 commit 0cac6be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

script/BaseMigration.s.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,12 @@ abstract contract BaseMigration is ScriptExtended {
119119

120120
address logic = _deployLogic(contractType);
121121
string memory proxyAbsolutePath = "TransparentUpgradeableProxy.sol:TransparentUpgradeableProxy";
122-
uint256 proxyNonce;
122+
uint256 proxyNonce = vm.getNonce(sender());
123123
address proxyAdmin = _getProxyAdmin();
124124
assertTrue(proxyAdmin != address(0x0), "BaseMigration: Null ProxyAdmin");
125125

126-
(deployed, proxyNonce) = _deployRaw(proxyAbsolutePath, abi.encode(logic, proxyAdmin, args));
126+
vm.broadcast(sender());
127+
deployed = payable(address(new TransparentUpgradeableProxy(logic, proxyAdmin, args)));
127128

128129
// validate proxy admin
129130
address actualProxyAdmin = deployed.getProxyAdmin();

0 commit comments

Comments
 (0)