Skip to content

Commit

Permalink
Merge pull request #53 from smart-transaction/feat/local-chain-deploy
Browse files Browse the repository at this point in the history
Deploy config for lestnet
  • Loading branch information
TokenTitan authored Jul 23, 2024
2 parents c436bd9 + 400c69a commit a3eb022
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script/BaseDeployer.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ abstract contract BaseDeployer is Script {
Sepolia,
Base,
BaseSepolia,
Lestnet,
LocalChain
}

Expand Down Expand Up @@ -101,6 +102,7 @@ abstract contract BaseDeployer is Script {
forks[Chains.Moonriver] = vm.envString("MOONRIVER_RPC");
forks[Chains.Sepolia] = vm.envString("SEPOLIA_RPC");
forks[Chains.BaseSepolia] = vm.envString("BASE_SEPOLIA_RPC");
forks[Chains.Lestnet] = vm.envString("LESTNET_RPC");

// Mainnet
forks[Chains.Ethereum] = vm.envString("ETHEREUM_RPC");
Expand Down Expand Up @@ -160,12 +162,12 @@ abstract contract BaseDeployer is Script {
deploymentAddress = createDeployMultichain(deployForks);
}

/// @dev Deploy contracts to local.
function deployLocal() external setEnvDeploy(Cycle.Dev) returns (address deploymentAddress) {
/// @dev Deploy contracts to lestnet.
function deployLestnet() external setEnvDeploy(Cycle.Dev) returns (address deploymentAddress) {
Chains[] memory deployForks = new Chains[](1);
_salt = bytes32(uint256(1));

deployForks[0] = Chains.LocalChain;
deployForks[0] = Chains.Lestnet;

deploymentAddress = createDeployMultichain(deployForks);
}
Expand Down

0 comments on commit a3eb022

Please sign in to comment.