Missing network field in custom chains #447
Unanswered
railBitsAndHex
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Thanks for spotting this! I also noticed that there was a type error with This example was borrowed from the wagmi docs, so I've sent them a PR too: wevm/wagmi#532 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using custom chains in Typescript, following the content as per mentioned in the docs
I noticed that I recieved the following error (ts2332)
Property 'network' is missing in type '{ id: number; name: string; nativeCurrency: { decimals: number; name: string; symbol: string; }; rpcUrls: { default: string; }; blockExplorers: { default: { name: string; url: string; }; snowtrace: { name: string; url: string; }; }; testnet: false; }' but required in type 'Chain'.
It seems that the
network
field is missing and not mentioned in the sample code from the docs, but necessary to be added.May I know if the docs can be updated to prevent this issue from occurring?
Beta Was this translation helpful? Give feedback.
All reactions