Skip to content

Commit

Permalink
0.21.3 update:
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
jcramer committed Sep 23, 2019
1 parent bb91583 commit 4fbfb78
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/localvalidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4fbfb78

Please # to comment.