mirror of
https://github.com/Instadapp/vue-web3.git
synced 2024-07-29 21:48:25 +00:00
fix UnsupportedChainIdError
constructor name
This commit is contained in:
parent
a8dcb6a556
commit
14a21a1711
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@instadapp/vue-web3",
|
||||
"version": "0.5.0",
|
||||
"version": "0.6.0",
|
||||
"description": "Vue web3 composition api",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
|
|
|
@ -9,7 +9,7 @@ export class UnsupportedChainIdError extends Error {
|
|||
supportedChainIds?: readonly number[],
|
||||
) {
|
||||
super()
|
||||
this.name = this.constructor.name
|
||||
this.name = 'UnsupportedChainIdError'
|
||||
this.message = `Unsupported chain id: ${unsupportedChainId}. Supported chain ids are: ${supportedChainIds}.`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user