Skip to content

Commit

Permalink
BLOCKCHAIN-48 - contracts upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperzuk-neti committed Aug 10, 2023
1 parent 440da03 commit cafb152
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions eth-bridge/contracts/script/Upgrade.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import "../src/Bridge.sol";

contract Deploy is Script {
function run() external {
vm.startBroadcast();
Bridge lldProxy = Bridge(vm.envAddress("LLDProxy"));
Bridge llmProxy = Bridge(vm.envAddress("LLMProxy"));

Bridge newBridgeImpl = new Bridge();

lldProxy.upgradeTo(address(newBridgeImpl));
llmProxy.upgradeTo(address(newBridgeImpl));
}
}

0 comments on commit cafb152

Please sign in to comment.