scaffold-eth / se-2-docs

Documentation site for Scaffold-ETH 2
https://docs.scaffoldeth.io
MIT License
13 stars 26 forks source link

Update `scaffold.config` `targetNetwork` to be an array of chains #42

Closed technophile-04 closed 11 months ago

technophile-04 commented 11 months ago

Description :

We recently merged https://github.com/scaffold-eth/scaffold-eth-2/pull/615 and it would be great if we reflect same on docs 🙌


Also maybe adding small note at https://docs.scaffoldeth.io/hooks/ and also update externalContract.ts example to have same contracts name because of this :

So currently I see we are assuming that the same contracts are present on others chains as scaffoldConfig.targetNetworks[0].id.

Like if for eg: 31337: YourContract & 1115511 : YourContract, DAI

  1. We are will only give ts autocompletion for YourContract and DAI is not present in autocompleteions.
  2. We are not showing DAI contract on debug page if the user switches the chain to sepolia.

from this comment : https://github.com/scaffold-eth/scaffold-eth-2/pull/615