From 1422e6f2bca209cde4d2d6d5f1e3d6ba6541468f Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Fri, 29 Apr 2022 19:27:04 +0300 Subject: [PATCH] fix `UnsupportedChainIdError` prototype --- package.json | 2 +- src/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 965a5c7..497f405 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index 869dd52..4e8a177 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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) } }