fix: improve chain id error (#6266)

* build: upgrade sentry

* fix: improve chain id error
This commit is contained in:
Zach Pomerantz 2023-03-29 12:38:33 -07:00 committed by GitHub
parent 7c37b9d00e
commit db257c73f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -489,7 +489,7 @@ class ExtendedEther extends Ether {
public get wrapped(): Token {
const wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId]
if (wrapped) return wrapped
throw new Error('Unsupported chain ID')
throw new Error(`Unsupported chain ID: ${this.chainId}`)
}
private static _cachedExtendedEther: { [chainId: number]: NativeCurrency } = {}