From 14a21a1711090d39745ba95bfbb2d8c0e4b43e5f Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Fri, 29 Apr 2022 19:15:43 +0300 Subject: [PATCH] fix `UnsupportedChainIdError` constructor name --- package.json | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 98ba141..965a5c7 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index a71532f..869dd52 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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}.` } }