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

determining chainid inside of deploy script #239

Open
makinghappen opened this issue Apr 2, 2023 · 0 comments
Open

determining chainid inside of deploy script #239

makinghappen opened this issue Apr 2, 2023 · 0 comments

Comments

@makinghappen
Copy link

this.__hardhatContext.environment.network does not contain chainId property, this property is available for other L1 networks on hardhat and it is convenient to use it to determine chain id for saving contract addresses.

{
  name: 'zkSyncTestnet',
  config: {
    accounts: {
      initialIndex: 0,
      count: 20,
      path: "m/44'/60'/0'/0",
      passphrase: '',
      mnemonic: ''
    },
    gas: 'auto',
    gasPrice: 'auto',
    gasMultiplier: 1,
    httpHeaders: {},
    timeout: 20000,
    url: 'https://zksync2-testnet.zksync.dev',
    ethNetwork: 'goerli',
    zksync: true
  },
}
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

No branches or pull requests

1 participant