From 31e8ee75c98605285c1a3c0289c8e6669fbe5752 Mon Sep 17 00:00:00 2001 From: Steven Zeiler Date: Sun, 31 Jul 2022 18:49:25 +0200 Subject: [PATCH] fix(solution-bug): allow share to be an object not a string --- lib/work/proof.ts | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/work/proof.ts b/lib/work/proof.ts index a57e4c5..ee4ed3c 100644 --- a/lib/work/proof.ts +++ b/lib/work/proof.ts @@ -46,7 +46,6 @@ export class Solution { static fromJSON(x): Solution | undefined { if (!x.share || !x.extra_nonce_1 || !x.share.timestamp || !x.share.nonce || !x.share.extra_nonce_2 || - typeof x.share !== 'string' || typeof x.extra_nonce_1 !== 'string' || typeof x.share.timestamp !== 'string' || typeof x.share.nonce !== 'string' || diff --git a/package.json b/package.json index 43b1c25..b7e6b40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "boostpow", - "version": "1.4.1", + "version": "1.7.0", "description": "BoostPow Javascript SDK", "main": "dist/index.js", "types": "dist//index.d.ts",