From 606d1e636e91ae2e0f75b84fede0760de337d953 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Mon, 28 Aug 2023 16:13:48 +0300 Subject: [PATCH] fix --- package.json | 2 +- src/signer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 96b4e78..2b7b4c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@instadapp/avocado", - "version": "0.4.4", + "version": "0.4.5", "type": "module", "files": [ "dist" diff --git a/src/signer.ts b/src/signer.ts index 29f0ed7..491650f 100644 --- a/src/signer.ts +++ b/src/signer.ts @@ -162,7 +162,7 @@ class AvoSigner extends Signer implements TypedDataSigner { const avoSafeNonce = options && typeof options.avoSafeNonce !== 'undefined' ? String(options.avoSafeNonce) : await this.getSafeNonce(targetChainId) const avoVersion = options?.version - ? parse(options.version)?.major || 1 + ? (parse(options.version)?.major || 1) === 1 ? AvoSafeVersion.V1 : AvoSafeVersion.V2 : await avoContracts.safeVersion(targetChainId, options?.safeAddress || await this.getAddress());