Skip to content

Commit

Permalink
Merge pull request #14 from pow-co/share-string
Browse files Browse the repository at this point in the history
fix(solution-bug): allow share to be an object not a string
  • Loading branch information
owenkellogg authored Jul 31, 2022
2 parents e2b2bcd + 31e8ee7 commit 775a437
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/work/proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' ||
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 775a437

Please sign in to comment.