Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scryptlib

Package Overview
Dependencies
Maintainers
3
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scryptlib - npm Package Compare versions

Comparing version 0.3.2-beta1 to 0.3.2-beta2

8

dist/serializer.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc