Skip to content
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

LayerZero deployment to Base and BSC #1565

Merged
merged 5 commits into from
Aug 9, 2024
Merged

LayerZero deployment to Base and BSC #1565

merged 5 commits into from
Aug 9, 2024

Conversation

wojciech-turek
Copy link
Member

Description

  • Replace hardcoded networks with enum usage
  • Fix network name typo
  • Fix contract name typo
  • Fix setup scripts
  • Throw an error when trying to run setup script on unsupported chain
  • Add deployment files

const deploymentsEthereum = hreEthereum.deployments;
const OFTAdapterForSand = await deploymentsEthereum.getOrNull(
'OFTAdapterForSand'
);

const hreBsc = hre.companionNetworks.bscMainnet;
const hreBsc = hre.companionNetworks[DEPLOY_NETWORKS.BSC_MAINNET];
const deploymentsBsc = hreBsc.deployments;
const OFTSandBsc = await deploymentsBsc.getOrNull('OFTSand');

Copy link
Contributor

Choose a reason for hiding this comment

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

replace OFTAdapterForSand with OFTSand in isPeerForEthereum and isPeerForBsc

@wojciech-turek wojciech-turek merged commit c2319b4 into master Aug 9, 2024
6 checks passed
@wojciech-turek wojciech-turek deleted the lz-deploy branch August 9, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants