Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Aug 2, 2024
1 parent a1ec678 commit acc628e
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit acc628e

Please sign in to comment.