Created
August 20, 2022 16:19
-
-
Save atarpara/49ce62e8c7f693bbe7a5a38d6cddf5e4 to your computer and use it in GitHub Desktop.
clones using foundry script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.13; | |
import "forge-std/Script.sol"; | |
import "src/Counter.sol"; | |
import "src/LibClone.sol"; | |
contract CounterScript is Script { | |
function setUp() public { | |
} | |
function run() public { | |
vm.startBroadcast(); | |
new Counter(); | |
vm.stopBroadcast(); | |
} | |
} | |
contract pattern is Script { | |
address implementation; | |
function setUp() public { | |
implementation = address(0xfe06512259E67d180BcdaAD1EDa331CBF6546C05); | |
} | |
function run() public { | |
vm.startBroadcast(); | |
address op = LibClone.cloneOpenZeppelin(implementation); | |
address sw0nt = LibClone.cloneSw0nt(implementation); | |
address Oage = LibClone.clone0age(implementation); | |
vm.stopBroadcast(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment