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
We are will only give ts autocompletion for YourContract and DAI is not present in autocompleteions.
We are not showing DAI contract on debug page if the user switches the chain to sepolia.
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 :from this comment : https://github.com/scaffold-eth/scaffold-eth-2/pull/615