Different contracts in different chains? (Tested: didn't work) #902
-
|
I was hoping to be able to us scaffold-eth-2 as a quick and dirty way to debug many of my experimental contract, available on different chains. I did setup the chains I want to support, e.g. in In
If I browse on Arbitrum Sepolia to the If I switch network to Mantle Sepolia Testnet and go to the No contract found by the name of "Test1" on chain "Mantle Sepolia Testnet"! Expected result: I would expect on mantle testnet to see the contracts configured for mantle testnet: Foo and Bar, instead of the error. Is this like this by design? Can it be it ready "externalContracts" sorting the chains alphabetically, this even if arbitrum sepolia is configured after mantle sepolia testnet it takes the contracts configured on arbitrum sepolia as "reference" and expects those contracts to be available on all chains? Looks like a bug to me, if so I will report it as a bug. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hey thanks @cryptotester! Actually you should have same contract names on Since there are lot of complications getting types autocompletions and functionality working when you have different contracts on different chains checkout this for more details. So this is an feature not implemented yet but probably in future for sure! |
Beta Was this translation helpful? Give feedback.
-
|
Did you update the deployedcongtracts.ts file? I have similar use case and this worked for me. |
Beta Was this translation helpful? Give feedback.

Did you update the deployedcongtracts.ts file? I have similar use case and this worked for me.