File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,11 @@ pragma solidity ^0.8.28;
44import "forge-std/Script.sol " ;
55import "../src/BatchTransferFraction.sol " ;
66import "../src/interfaces/IHypercertToken.sol " ;
7- import { Create2 } from "@openzeppelin/contracts/utils/Create2.sol " ;
87
98contract DeployBatchTransferScript is Script {
109 IHypercertToken internal hypercertToken;
1110
12- function configureChain () public {
11+ function configureChain () internal {
1312 string memory root = vm.projectRoot ();
1413 string memory path =
1514 string .concat (root, "/lib/hypercerts-protocol/contracts/src/deployments/deployments-protocol.json " );
@@ -30,15 +29,7 @@ contract DeployBatchTransferScript is Script {
3029
3130 vm.startBroadcast ();
3231
33- // bytes32 salt = keccak256(abi.encodePacked("BatchTransferFraction"));
34-
35- // bytes memory arg = abi.encode(address(hypercertToken));
36-
37- // bytes memory bytecode = abi.encodePacked(type(BatchTransferFraction).creationCode, arg);
38-
39- // address deployedAddress = Create2.deploy(0, salt, bytecode);
40-
41- BatchTransferFraction deployedAddress = new BatchTransferFraction (address (hypercertToken));
32+ address deployedAddress = address (new BatchTransferFraction (address (hypercertToken)));
4233
4334 console.log ("BatchTransferFraction deployed to: %s " , address (deployedAddress));
4435 vm.stopBroadcast ();
You can’t perform that action at this time.
0 commit comments