fix UnsupportedChainIdError constructor name

This commit is contained in:
Georges KABBOUCHI 2022-04-29 19:15:43 +03:00
parent a8dcb6a556
commit 14a21a1711
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@instadapp/vue-web3", "name": "@instadapp/vue-web3",
"version": "0.5.0", "version": "0.6.0",
"description": "Vue web3 composition api", "description": "Vue web3 composition api",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "index.js",

View File

@ -9,7 +9,7 @@ export class UnsupportedChainIdError extends Error {
supportedChainIds?: readonly number[], supportedChainIds?: readonly number[],
) { ) {
super() super()
this.name = this.constructor.name this.name = 'UnsupportedChainIdError'
this.message = `Unsupported chain id: ${unsupportedChainId}. Supported chain ids are: ${supportedChainIds}.` this.message = `Unsupported chain id: ${unsupportedChainId}. Supported chain ids are: ${supportedChainIds}.`
} }
} }