From acc628e7e25b8937aec02b9485b36cdce0cdda4c Mon Sep 17 00:00:00 2001 From: skosito Date: Fri, 2 Aug 2024 17:37:49 +0200 Subject: [PATCH] renaming --- .../deploy/{Create2.s.sol => DeployGatewayEVM.s.sol} | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) rename v2/scripts/deploy/{Create2.s.sol => DeployGatewayEVM.s.sol} (92%) diff --git a/v2/scripts/deploy/Create2.s.sol b/v2/scripts/deploy/DeployGatewayEVM.s.sol similarity index 92% rename from v2/scripts/deploy/Create2.s.sol rename to v2/scripts/deploy/DeployGatewayEVM.s.sol index 8b611276..220d1332 100644 --- a/v2/scripts/deploy/Create2.s.sol +++ b/v2/scripts/deploy/DeployGatewayEVM.s.sol @@ -5,10 +5,10 @@ import "forge-std/Script.sol"; import "src/evm/GatewayEVM.sol"; import "test/utils/TestERC20.sol"; import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; -import {console} from "forge-std/console.sol"; contract DeployGatewayEVMCreate2 is Script { function run() external { + // TODO: should be passed as arg string memory mnemonic = "test test test test test test test test test test test junk"; uint256 privateKey = vm.deriveKey(mnemonic, 0); address deployer = vm.rememberKey(privateKey); @@ -47,16 +47,11 @@ contract DeployGatewayEVMCreate2 is Script { ) ); - console.log(expectedImplAddress); - console.log(expectedProxyAddress); - ERC1967Proxy gatewayProxy = new ERC1967Proxy{salt: proxySalt}( address(gatewayImpl), abi.encodeWithSelector(GatewayEVM.initialize.selector, tss, address(zeta), admin) ); - console.log(address(gatewayProxy)); - require(expectedProxyAddress == address(gatewayProxy), "proxy address doesn't match expected address"); GatewayEVM gateway = GatewayEVM(address(gatewayProxy));