Skip to content

Commit

Permalink
feat: add deployment script, use cancun version
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Feb 17, 2024
1 parent 5b34122 commit e94ea6b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ libs = ["lib"]
optimizer = true
optimizer_runs = 999999
via_ir = true
evm_version = "shanghai"
solc_version = "0.8.24"
evm_version = "cancun"

[profile.intense.fuzz]
max_test_rejects = 999999
Expand Down
15 changes: 15 additions & 0 deletions script/DeployMessageReceiver.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.23;

import {MessageReceiverMock} from "src/mocks/MessageReceiverMock.sol";
import {Script} from "forge-std/Script.sol";

contract DeployMessageReceiver is Script {
function run() external {
vm.startBroadcast();
address bridge = vm.envAddress("BRIDGE");
MessageReceiverMock receiver = new MessageReceiverMock();
receiver.initialize(bridge);
vm.stopBroadcast();
}
}

0 comments on commit e94ea6b

Please sign in to comment.