From 4fbfb7856f63e754b1f10900696dec964a4dda5e Mon Sep 17 00:00:00 2001 From: James Cramer Date: Mon, 23 Sep 2019 11:51:39 -0400 Subject: [PATCH] 0.21.3 update: - Updated NFT1 validator, fixed bug causing NFT1 child created directly from NFT1 parent Genesis to be judged invalid. - Removed map files from npm package module --- lib/localvalidator.ts | 6 +++--- package-lock.json | 2 +- package.json | 5 +++-- readme.md | 4 ++++ 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/localvalidator.ts b/lib/localvalidator.ts index 603d99a6..81dd6ebe 100644 --- a/lib/localvalidator.ts +++ b/lib/localvalidator.ts @@ -211,9 +211,9 @@ export class LocalValidator implements SlpValidator { this.cachedValidations[txid].waiting = false; this.cachedValidations[txid].invalidReason = "NFT1 child's parent has SLP output that is not greater than zero."; return this.cachedValidations[txid].validity!; - } else if(input_slpmsg.transactionType === SlpTransactionType.GENESIS || - input_slpmsg.transactionType === SlpTransactionType.MINT && - (!input_slpmsg.genesisOrMintQuantity!.isGreaterThan(0))) + } else if((input_slpmsg.transactionType === SlpTransactionType.GENESIS || + input_slpmsg.transactionType === SlpTransactionType.MINT) && + !input_slpmsg.genesisOrMintQuantity!.isGreaterThan(0)) { this.cachedValidations[txid].validity = false; this.cachedValidations[txid].waiting = false; diff --git a/package-lock.json b/package-lock.json index 20db368b..eca470c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "slpjs", - "version": "0.21.2", + "version": "0.21.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 6bc9675e..4bb70917 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,12 @@ { "name": "slpjs", - "version": "0.21.2", + "version": "0.21.3", "description": "Simple Ledger Protocol (SLP) JavaScript Library", "main": "index.js", "files": [ "index.ts", - "lib/", + "lib/*.js", + "lib/*.ts", "dist/" ], "scripts": { diff --git a/readme.md b/readme.md index e5c48ab6..9b176979 100644 --- a/readme.md +++ b/readme.md @@ -772,6 +772,10 @@ Running the unit tests require node.js v8.15+. # Change Log +### 0.21.3 +- Judge NFT1 child created directly from valid NFT1 Parent Genesis as valid +- Removed map files from npm package module + ### 0.21.2 - Export bitcore