scryptlib
Advanced tools
Comparing version 0.3.2-beta1 to 0.3.2-beta2
@@ -95,9 +95,9 @@ "use strict"; | ||
if (this.op.opcodenum === Opcode.OP_1) { | ||
return 1n; | ||
return BigInt(1); | ||
} | ||
else if (this.op.opcodenum === Opcode.OP_0) { | ||
return 0n; | ||
return BigInt(0); | ||
} | ||
else if (this.op.opcodenum === Opcode.OP_1NEGATE) { | ||
return -1n; | ||
return BigInt(-1); | ||
} | ||
@@ -114,3 +114,3 @@ else if (this.op.opcodenum >= Opcode.OP_2 && this.op.opcodenum <= Opcode.OP_16) { | ||
toBoolean() { | ||
return this.toBigInt() !== 0n; | ||
return this.toBigInt() !== BigInt(0); | ||
} | ||
@@ -117,0 +117,0 @@ toHex() { |
{ | ||
"name": "scryptlib", | ||
"version": "0.3.2-beta1", | ||
"version": "0.3.2-beta2", | ||
"description": "Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.", | ||
@@ -10,6 +10,6 @@ "engines": { | ||
"types": "dist", | ||
"browser":{ | ||
"browser": { | ||
"child_process": false, | ||
"fs": false | ||
}, | ||
}, | ||
"scripts": { | ||
@@ -16,0 +16,0 @@ "compile": "tsc -b", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128399