Commit db257c73 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: improve chain id error (#6266)

* build: upgrade sentry

* fix: improve chain id error
parent 7c37b9d0
...@@ -489,7 +489,7 @@ class ExtendedEther extends Ether { ...@@ -489,7 +489,7 @@ class ExtendedEther extends Ether {
public get wrapped(): Token { public get wrapped(): Token {
const wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId] const wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId]
if (wrapped) return wrapped if (wrapped) return wrapped
throw new Error('Unsupported chain ID') throw new Error(`Unsupported chain ID: ${this.chainId}`)
} }
private static _cachedExtendedEther: { [chainId: number]: NativeCurrency } = {} private static _cachedExtendedEther: { [chainId: number]: NativeCurrency } = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment