Skip to content

Commit 3abf77c

Browse files
committed
add DeploySepoliaSender script for deploying SepoliaSender contract
1 parent e41c6bd commit 3abf77c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

script/DeploySepoliaSender.s.sol

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity 0.8.26;
3+
4+
import {Script} from "forge-std/Script.sol";
5+
import {HelperConfig} from "./HelperConfig.s.sol";
6+
import {SepoliaSender} from "../src/SepoliaSender.sol";
7+
8+
contract DeploySepoliaSender is Script {
9+
address constant SEPOLIA_LINK_ADDRESS =
10+
0x779877A7B0D9E8603169DdbD7836e478b4624789;
11+
12+
function run() public {
13+
HelperConfig helperConfig = new HelperConfig();
14+
SepoliaSender sepoliaSender;
15+
(, , , , , address ccipRouter) = helperConfig.activeNetworkConfig();
16+
17+
vm.startBroadcast();
18+
19+
sepoliaSender = new SepoliaSender(ccipRouter, SEPOLIA_LINK_ADDRESS);
20+
21+
vm.stopBroadcast();
22+
}
23+
}

0 commit comments

Comments
 (0)