@dashevo/dashcore-lib
Advanced tools
Comparing version 0.18.9 to 0.18.10
@@ -16,2 +16,3 @@ /* eslint-disable */ | ||
var constants = require('../constants'); | ||
var Networks = require('../networks'); | ||
@@ -35,2 +36,4 @@ /** | ||
if (arg) { | ||
network = Networks.get(network); | ||
if (arg instanceof SimplifiedMNListDiff) { | ||
@@ -159,2 +162,4 @@ return arg.copy(); | ||
network = Networks.get(network); | ||
simplifiedMNListDiff.baseBlockHash = obj.baseBlockHash; | ||
@@ -161,0 +166,0 @@ simplifiedMNListDiff.blockHash = obj.blockHash; |
@@ -15,2 +15,3 @@ /* eslint-disable */ | ||
var Address = require('../address'); | ||
var Networks = require('../networks'); | ||
@@ -51,2 +52,4 @@ var isSha256 = utils.isSha256HexString; | ||
if (arg) { | ||
network = Networks.get(network); | ||
if (arg instanceof SimplifiedMNListEntry) { | ||
@@ -53,0 +56,0 @@ return arg.copy(); |
{ | ||
"name": "@dashevo/dashcore-lib", | ||
"version": "0.18.9", | ||
"version": "0.18.10", | ||
"description": "A pure and powerful JavaScript Dash library.", | ||
@@ -5,0 +5,0 @@ "author": "Dash Core Group, Inc. <dev@dash.org>", |
@@ -74,2 +74,6 @@ /* eslint-disable */ | ||
}); | ||
it('Should be able to create an instance from object with specified network', function () { | ||
var diff = SimplifiedMNListDiff.fromObject(mnListDiffJSON, 'testnet'); | ||
expect(diff.toObject()).to.be.deep.equal(mnListDiffJSON); | ||
}); | ||
}); | ||
@@ -76,0 +80,0 @@ describe('toObject', function () { |
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
3738693
57518