foundry-rs / starknet-foundry

Blazing fast toolkit for developing Starknet contracts.
https://foundry-rs.github.io/starknet-foundry/
MIT License
302 stars 147 forks source link

Recognize Devnet instances in block explorer link display #2488

Open integraledelebesgue opened 1 day ago

integraledelebesgue commented 1 day ago

Which component is the issue related to?

Cast

Issue

At the moment, we don't differentiate real Mainnet/Sepolia from those created by Devnet, since chain_id is the same. Thus, after commiting a transaction, Cast displays invalid links to block explorer pages.

Additional logic to block explorer printer should be added to supress it from providing links to transactions made on Devnet. Potential directions:

integraledelebesgue commented 1 day ago

Here we discuss possible solutions.