Skip to content

Commit

Permalink
fix: deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGuru7 committed Nov 28, 2023
1 parent ad17933 commit a5200a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions deploy/001-xvs-bridge-local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const accessControlManager = await ethers.getContract("AccessControlManager");
const normalTimelock = await ethers.getContract("NormalTimelock");
const resilientOracle = await ethers.getContract("ResilientOracle");
const XVS = await ethers.getContract("XVS");

const XVSProxyOFTSrc = await deploy("XVSProxyOFTSrc", {
from: deployer,
contract: "XVSProxyOFTSrc",
args: [preconfiguredAddresses.XVS, 8, preconfiguredAddresses.LzEndpoint, resilientOracle.address],
args: [XVS.address, 8, preconfiguredAddresses.LzEndpoint, resilientOracle.address],
autoMine: true,
log: true,
});
Expand All @@ -101,7 +102,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const bridge = await ethers.getContract("XVSProxyOFTSrc");
const bridgeAdmin = await ethers.getContract("XVSBridgeAdmin");

const removeArray = new Array(xvsBridgeMethods.length).fill(false);
const removeArray = new Array(xvsBridgeMethods.length).fill(true);
let tx = await bridgeAdmin.upsertSignature(xvsBridgeMethods, removeArray);
await tx.wait();

Expand Down
5 changes: 3 additions & 2 deletions deploy/002-xvs-bridge-remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {

const proxyOwnerAddress = await toAddress(preconfiguredAddresses.NormalTimelock, hre);
const accessControlManager = await ethers.getContract("AccessControlManager");
const resilientOracle = await ethers.getContract("ResilientOracle");

const XVS = await deploy("XVS", {
from: deployer,
Expand All @@ -100,7 +101,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const XVSProxyOFTDest = await deploy("XVSProxyOFTDest", {
from: deployer,
contract: "XVSProxyOFTDest",
args: [XVS.address, 8, preconfiguredAddresses.LzEndpoint, preconfiguredAddresses.ResilientOracle],
args: [XVS.address, 8, preconfiguredAddresses.LzEndpoint, resilientOracle.address],
autoMine: true,
log: true,
});
Expand Down Expand Up @@ -128,7 +129,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {

await executeBridgeCommands(bridge, hre, deployer);

const removeArray = new Array(xvsBridgeMethods.length).fill(false);
const removeArray = new Array(xvsBridgeMethods.length).fill(true);
let tx = await bridgeAdmin.upsertSignature(xvsBridgeMethods, removeArray);
await tx.wait();

Expand Down

0 comments on commit a5200a4

Please sign in to comment.