fix: improve chain id error (#6266)
* build: upgrade sentry * fix: improve chain id error
This commit is contained in:
parent
7c37b9d00e
commit
db257c73f2
@ -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 } = {}
|
||||
|
Loading…
Reference in New Issue
Block a user