File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: MIT
2+ pragma solidity 0.8.26 ;
3+
4+ import {Script, console} from "forge-std/Script.sol " ;
5+ import {DevOpsTools} from "lib/foundry-devops/src/DevOpsTools.sol " ;
6+ import {AmoyReceiver} from "../src/AmoyReceiver.sol " ;
7+
8+ contract GetSignedMessage is Script {
9+ AmoyReceiver amoyReceiver;
10+
11+ function getSignedMessage (address mostRecentlyDeployed ) public {
12+ amoyReceiver = AmoyReceiver (mostRecentlyDeployed);
13+ bytes memory signedMessage = amoyReceiver.getSignedMessage ();
14+ console.log ("Signed message: " );
15+ console.logBytes (signedMessage);
16+ }
17+
18+ function run () public {
19+ address mostRecentlyDeployed = DevOpsTools.get_most_recent_deployment (
20+ "AmoyReceiver " ,
21+ block .chainid
22+ );
23+ console.log ("Most recently deployed address: " , mostRecentlyDeployed);
24+
25+ getSignedMessage (mostRecentlyDeployed);
26+ }
27+ }
You can’t perform that action at this time.
0 commit comments