fix UnsupportedChainIdError prototype

This commit is contained in:
Georges KABBOUCHI 2022-04-29 19:27:04 +03:00
parent 14a21a1711
commit 1422e6f2bc
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -11,6 +11,8 @@ export class UnsupportedChainIdError extends Error {
super()
this.name = 'UnsupportedChainIdError'
this.message = `Unsupported chain id: ${unsupportedChainId}. Supported chain ids are: ${supportedChainIds}.`
Object.setPrototypeOf(this, UnsupportedChainIdError.prototype)
}
}