Skip to content

Commit

Permalink
fix: network in oft-sand setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
capedcrusader21 committed Jul 27, 2024
1 parent a866808 commit 8275dcd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const func: DeployFunction = async function (
const deploymentsBase = hreBase.deployments;
const OFTSandBase = await deploymentsBase.getOrNull('OFTSand');

const hreBsc = hre.companionNetworks.bsc;
const hreBsc = hre.companionNetworks.bscMainnet;
const deploymentsBsc = hreBsc.deployments;
const OFTSandBsc = await deploymentsBsc.getOrNull('OFTSand');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ const func: DeployFunction = async function (
eidBsc = 0;
}

const hreEthereum = hre.companionNetworks.ethereum;
const hreEthereum = hre.companionNetworks.mainnet;
const deploymentsEthereum = hreEthereum.deployments;
const OFTAdapterForSand = await deploymentsEthereum.getOrNull(
'OFTAdapterForSand'
);

const hreBsc = hre.companionNetworks.bsc;
const hreBsc = hre.companionNetworks.bscMainnet;
const deploymentsBsc = hreBsc.deployments;
const OFTSandBsc = await deploymentsBsc.getOrNull('OFTSand');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const func: DeployFunction = async function (
eidBase = 0;
}

const hreEthereum = hre.companionNetworks.ethereum;
const hreEthereum = hre.companionNetworks.mainnet;
const deploymentsEthereum = hreEthereum.deployments;
const OFTAdapterForSand = await deploymentsEthereum.getOrNull(
'OFTAdapterForSand'
Expand Down
12 changes: 6 additions & 6 deletions packages/deploy/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ const networks = {
tags: [DEPLOY_TAGS.L1, DEPLOY_TAGS.L1_PROD],
companionNetworks: {
[DEPLOY_NETWORKS.AMOY]: DEPLOY_NETWORKS.AMOY,
[DEPLOY_NETWORKS.BASE_SEPOLIA]: DEPLOY_NETWORKS.BASE_SEPOLIA,
[DEPLOY_NETWORKS.BSC_TESTNET]: DEPLOY_NETWORKS.BSC_TESTNET,
[DEPLOY_NETWORKS.BASE_MAINNET]: DEPLOY_NETWORKS.BASE_SEPOLIA,
[DEPLOY_NETWORKS.BSC_MAINNET]: DEPLOY_NETWORKS.BSC_TESTNET,
},
},
[DEPLOY_NETWORKS.ETH_MAINNET]: {
Expand All @@ -385,8 +385,8 @@ const networks = {
[DEPLOY_NETWORKS.BSC_TESTNET]: {
tags: [DEPLOY_TAGS.L1, DEPLOY_TAGS.L1_TEST],
companionNetworks: {
[DEPLOY_NETWORKS.ETH_SEPOLIA]: DEPLOY_NETWORKS.ETH_SEPOLIA,
[DEPLOY_NETWORKS.BASE_SEPOLIA]: DEPLOY_NETWORKS.BASE_SEPOLIA,
[DEPLOY_NETWORKS.ETH_MAINNET]: DEPLOY_NETWORKS.ETH_SEPOLIA,
[DEPLOY_NETWORKS.BASE_MAINNET]: DEPLOY_NETWORKS.BASE_SEPOLIA,
},
},
[DEPLOY_NETWORKS.BSC_MAINNET]: {
Expand Down Expand Up @@ -417,8 +417,8 @@ const networks = {
[DEPLOY_NETWORKS.BASE_SEPOLIA]: {
tags: [DEPLOY_TAGS.L2, DEPLOY_TAGS.L2_TEST],
companionNetworks: {
[DEPLOY_NETWORKS.ETH_SEPOLIA]: DEPLOY_NETWORKS.ETH_SEPOLIA,
[DEPLOY_NETWORKS.BSC_TESTNET]: DEPLOY_NETWORKS.BSC_TESTNET,
[DEPLOY_NETWORKS.ETH_MAINNET]: DEPLOY_NETWORKS.ETH_SEPOLIA,
[DEPLOY_NETWORKS.BSC_MAINNET]: DEPLOY_NETWORKS.BSC_TESTNET,
},
},
[DEPLOY_NETWORKS.BASE_MAINNET]: {
Expand Down

1 comment on commit 8275dcd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

91.49%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/oft-sand/contracts
   OFTAdapterForSand.sol92.59%100%87.50%92.31%76
   OFTSand.sol94.44%100%91.67%94.44%124
packages/oft-sand/contracts/interfaces
   IERC20Extended.sol100%100%100%100%
   IErrors.sol100%100%100%100%
packages/oft-sand/contracts/mock
   EndpointMock.sol100%100%100%100%
   MockTrustedForwarder.sol100%100%100%100%
   SandMock.sol100%100%100%100%
packages/oft-sand/contracts/oft/libraries
   OFTMsgCodec.sol70.59%50%71.43%75%27, 64, 73
packages/oft-sand/contracts/sand
   ERC20Internal.sol100%100%100%100%
   SandBaseToken.sol100%100%100%100%

Please sign in to comment.