:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
One such instance of an issue this has caused is in Brave. Brave wallet conflates networkId and chainId when evaluating an chain's available tokens in it's Swap feature. Aligning networkId and chainId makes it work.
I propose that we change the default value for networkId to match chainId (which defaults to 1337). But it should match a user provided chainId as well. If the user wants a random id they can use the word "random". Open to discussion on the best path forward (this will be a breaking change).
One such instance of an issue this has caused is in Brave. Brave wallet conflates
networkId
andchainId
when evaluating an chain's available tokens in it'sSwap
feature. AligningnetworkId
andchainId
makes it work.I propose that we change the default value for
networkId
to matchchainId
(which defaults to 1337). But it should match a user provided chainId as well. If the user wants a random id they can use the word"random"
. Open to discussion on the best path forward (this will be a breaking change).