mirror of
https://github.com/Instadapp/vue-web3.git
synced 2024-07-29 21:48:25 +00:00
fix UnsupportedChainIdError prototype
This commit is contained in:
parent
14a21a1711
commit
1422e6f2bc
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@instadapp/vue-web3",
|
"name": "@instadapp/vue-web3",
|
||||||
"version": "0.6.0",
|
"version": "0.7.0",
|
||||||
"description": "Vue web3 composition api",
|
"description": "Vue web3 composition api",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ export class UnsupportedChainIdError extends Error {
|
||||||
super()
|
super()
|
||||||
this.name = 'UnsupportedChainIdError'
|
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}.`
|
||||||
|
|
||||||
|
Object.setPrototypeOf(this, UnsupportedChainIdError.prototype)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user