-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSend.s.sol
More file actions
29 lines (21 loc) · 830 Bytes
/
Send.s.sol
File metadata and controls
29 lines (21 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import {BaseScript, console} from "./BaseScript.s.sol";
import {MessageSender} from "../src/MessageSender.sol";
import {MessageReceiver} from "../src/MessageReceiver.sol";
contract SendMessage is BaseScript {
MessageSender messageSender = MessageSender(MESSAGE_SENDER_ADDRESS);
function run(string memory messageText) external {
vm.startBroadcast(PRIVATE_KEY);
(bytes32 messageId) = messageSender.send(
FUJI_CHAIN_SELECTOR,
MESSAGE_BROKER_ADDRESS,
messageText
);
console.log(
"You can now monitor the status of your Chainlink CCIP Message via https://ccip.chain.link using CCIP Message ID: "
);
console.logBytes32(messageId);
vm.stopBroadcast();
}
}