Skip to content

[WIP] fix: multiple companion networks not working #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contracts/deploy/sender/01-arb-to-eth-sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const deploySenderGateway: DeployFunction = async (hre: HardhatRuntimeEnvironmen

// ----------------------------------------------------------------------------------------------
const liveDeployer = async () => {
const fastBridgeReceiver = await hre.companionNetworks.receiver.deployments.get("FastBridgeReceiverOnEthereum");
const fastBridgeReceiver = await hre.companionNetworks.receiver_eth.deployments.get("FastBridgeReceiverOnEthereum");

const fastBridgeSender = await deploy("FastBridgeSender", {
from: deployer,
Expand All @@ -69,8 +69,8 @@ const deploySenderGateway: DeployFunction = async (hre: HardhatRuntimeEnvironmen
log: true,
});

const ReceiverGateway = await hre.companionNetworks.receiver.deployments.get("ReceiverGatewayOnEthereum");
const ReceiverChainId = Number(await hre.companionNetworks.receiver.getChainId());
const ReceiverGateway = await hre.companionNetworks.receiver_eth.deployments.get("ReceiverGatewayOnEthereum");
const ReceiverChainId = Number(await hre.companionNetworks.receiver_eth.getChainId());
const senderGateway = await deploy("SenderGatewayToEthereum", {
from: deployer,
contract: "SenderGatewayMock",
Expand Down
6 changes: 3 additions & 3 deletions contracts/deploy/sender/02-arb-to-gnosis-sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const deploySenderGateway: DeployFunction = async (hre: HardhatRuntimeEnvironmen

// ----------------------------------------------------------------------------------------------

const fastBridgeReceiver = await hre.companionNetworks.receiver.deployments.get("FastBridgeReceiverOnGnosis");
const fastBridgeReceiver = await hre.companionNetworks.receiver_gnosis.deployments.get("FastBridgeReceiverOnGnosis");

const fastBridgeSender = await deploy("FastBridgeSender", {
from: deployer,
Expand All @@ -25,8 +25,8 @@ const deploySenderGateway: DeployFunction = async (hre: HardhatRuntimeEnvironmen
log: true,
});

const ReceiverGateway = await hre.companionNetworks.receiver.deployments.get("ReceiverGatewayOnGnosis");
const ReceiverChainId = Number(await hre.companionNetworks.receiver.getChainId());
const ReceiverGateway = await hre.companionNetworks.receiver_gnosis.deployments.get("ReceiverGatewayOnGnosis");
const ReceiverChainId = Number(await hre.companionNetworks.receiver_gnosis.getChainId());
const senderGateway = await deploy("SenderGatewayToGnosis", {
from: deployer,
contract: "SenderGatewayMock",
Expand Down
3 changes: 2 additions & 1 deletion contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ const config: HardhatUserConfig = {
saveDeployments: true,
tags: ["staging", "sender", "layer2"],
companionNetworks: {
receiver: "chiado",
receiver_gnosis: "chiado",
receiver_eth: "goerli",
},
verify: {
etherscan: {
Expand Down