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

@colony/colony-js-contract-client

Package Overview
Dependencies
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@colony/colony-js-contract-client - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

8

lib/classes/ContractMethodMultisigSender.js

@@ -31,5 +31,5 @@ 'use strict';

var _browserAssert = require('browser-assert');
var _assert = require('assert');
var _browserAssert2 = _interopRequireDefault(_browserAssert);
var _assert2 = _interopRequireDefault(_assert);

@@ -137,3 +137,3 @@ var _colonyJsUtils = require('@colony/colony-js-utils');

(0, _browserAssert2.default)(Array.isArray(signees) && signees.every(_colonyJsUtils.isValidAddress), 'Expected an array of signee addresses');
(0, _assert2.default)(Array.isArray(signees) && signees.every(_colonyJsUtils.isValidAddress), 'Expected an array of signee addresses');
return _context2.abrupt('return', signees);

@@ -175,3 +175,3 @@

(0, _browserAssert2.default)(Number(nonce) === nonce && Number.isInteger(nonce), 'Nonce must be an integer');
(0, _assert2.default)(Number(nonce) === nonce && Number.isInteger(nonce), 'Nonce must be an integer');

@@ -178,0 +178,0 @@ return _context3.abrupt('return', nonce);

@@ -37,5 +37,5 @@ 'use strict';

var _browserAssert = require('browser-assert');
var _assert = require('assert');
var _browserAssert2 = _interopRequireDefault(_browserAssert);
var _assert2 = _interopRequireDefault(_assert);

@@ -92,3 +92,3 @@ var _colonyJsUtils = require('@colony/colony-js-utils');

value: function _validateSignature(signature) {
var assert = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _browserAssert2.default;
var assert = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _assert2.default;

@@ -134,3 +134,3 @@ assert((0, _lodash2.default)(signature), 'Signature must be an object');

this.constructor._validateSigners(signers);
(0, _browserAssert2.default)(nonce == null || Number.isInteger(nonce), 'The optional `nonce` parameter should be an integer');
(0, _assert2.default)(nonce == null || Number.isInteger(nonce), 'The optional `nonce` parameter should be an integer');

@@ -173,3 +173,3 @@ this.sender = sender;

(0, _browserAssert2.default)((0, _lodash4.default)(this.payload, payload), 'Unable to add state; incompatible payloads');
(0, _assert2.default)((0, _lodash4.default)(this.payload, payload), 'Unable to add state; incompatible payloads');
this.constructor._validateSigners(signers);

@@ -269,3 +269,3 @@ this._signers = Object.assign({}, this._signers, signers);

value: function _validateRequiredSignees() {
(0, _browserAssert2.default)(this.missingSignees.length === 0, 'Missing signatures (from addresses ' + this.missingSignees.join(', ') + ')');
(0, _assert2.default)(this.missingSignees.length === 0, 'Missing signatures (from addresses ' + this.missingSignees.join(', ') + ')');
return true;

@@ -510,3 +510,3 @@ }

get: function get() {
(0, _browserAssert2.default)(Array.isArray(this._requiredSignees), 'Required signees not defined; call `.refresh` to refresh signees');
(0, _assert2.default)(Array.isArray(this._requiredSignees), 'Required signees not defined; call `.refresh` to refresh signees');

@@ -513,0 +513,0 @@ return this._requiredSignees;

{
"name": "@colony/colony-js-contract-client",
"version": "1.2.1",
"version": "1.3.0",
"description": "Method-like interface for Smart Contracts",

@@ -44,8 +44,8 @@ "main": "lib/index.js",

"dependencies": {
"@colony/colony-js-adapter": "^1.2.1",
"@colony/colony-js-contract-loader": "^1.2.1",
"@colony/colony-js-utils": "^1.2.1",
"@colony/colony-js-adapter": "^1.3.0",
"@colony/colony-js-contract-loader": "^1.3.0",
"@colony/colony-js-utils": "^1.3.0",
"assert": "^1.4.1",
"babel-runtime": "^6.26.0",
"bn.js": "^4.11.6",
"browser-assert": "^1.2.1",
"bs58": "^4.0.1",

@@ -52,0 +52,0 @@ "lodash.isequal": "^4.5.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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