Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: cow swap support #53

Merged
merged 12 commits into from
Nov 13, 2024
Merged
23 changes: 23 additions & 0 deletions script/DeployAuction.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.8.18;

import "./BaseScript.s.sol";

// Deploy a contract to a deterministic address with create2
contract DeployAuction is BaseScript {

function run() external {
vm.startBroadcast();

// Get the bytecode
bytes memory bytecode = vm.getCode("AuctionFactory.sol:AuctionFactory");

bytes32 salt;

address contractAddress = deployer.deployCreate2(salt, bytecode);

console.log("Address is ", contractAddress);

vm.stopBroadcast();
}
}
Loading
Loading