foundry-template/script/Deploy.s.sol

14 lines
425 B
Solidity

// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.26 <=0.9.0;
import { Foo } from "../src/Foo.sol";
import { BaseScript } from "./Base.s.sol";
import { DeploymentConfig } from "./DeploymentConfig.s.sol";
contract Deploy is BaseScript {
function run() public returns (Foo foo, DeploymentConfig deploymentConfig) {
deploymentConfig = new DeploymentConfig(broadcaster);
foo = new Foo();
}
}