Different contracts in different chains? (Tested: didn't work) #902
Unanswered
cryptotester
asked this question in
Q&A
Replies: 1 comment 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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
scaffold.config.ts
configure support for Arbitrum Sepolia and Mantle Sepolia Testnet.In
externalContracts.ts
I did setup in theexternalContracts
variable the 2 chains, but:If I browse on Arbitrum Sepolia to the
/debug
page, I can see Test1 and Test2. All good.If I switch network to Mantle Sepolia Testnet and go to the
/debug
page, I get this error:No contract found by the name of "Test1" on chain "Mantle Sepolia Testnet"!
No contract found by the name of "Test2" 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.
All reactions