@ethersproject/solidity
Advanced tools
Comparing version 5.0.0-beta.129 to 5.0.0-beta.130
@@ -1,1 +0,1 @@ | ||
export declare const version = "solidity/5.0.0-beta.129"; | ||
export declare const version = "solidity/5.0.0-beta.130"; |
@@ -1,1 +0,1 @@ | ||
export const version = "solidity/5.0.0-beta.129"; | ||
export const version = "solidity/5.0.0-beta.130"; |
@@ -44,3 +44,3 @@ "use strict"; | ||
if (match) { | ||
let size = parseInt(match[1]); | ||
const size = parseInt(match[1]); | ||
if (String(size) != match[1] || size === 0 || size > 32) { | ||
@@ -59,8 +59,8 @@ throw new Error("invalid number type - " + type); | ||
if (match && Array.isArray(value)) { | ||
let baseType = match[1]; | ||
let count = parseInt(match[2] || String(value.length)); | ||
const baseType = match[1]; | ||
const count = parseInt(match[2] || String(value.length)); | ||
if (count != value.length) { | ||
throw new Error("invalid value for " + type); | ||
} | ||
let result = []; | ||
const result = []; | ||
value.forEach(function (value) { | ||
@@ -78,3 +78,3 @@ result.push(_pack(baseType, value, true)); | ||
} | ||
let tight = []; | ||
const tight = []; | ||
types.forEach(function (type, index) { | ||
@@ -81,0 +81,0 @@ tight.push(_pack(type, values[index])); |
@@ -1,1 +0,1 @@ | ||
export declare const version = "solidity/5.0.0-beta.129"; | ||
export declare const version = "solidity/5.0.0-beta.130"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "solidity/5.0.0-beta.129"; | ||
exports.version = "solidity/5.0.0-beta.130"; |
{ | ||
"name": "@ethersproject/solidity", | ||
"version": "5.0.0-beta.129", | ||
"version": "5.0.0-beta.130", | ||
"description": "Solidity coder for non-standard (tight) packing.", | ||
@@ -32,3 +32,3 @@ "main": "./lib/index.js", | ||
"ethereum": "donations.ethers.eth", | ||
"tarballHash": "0x885ac249302c75192b4054cf52b4e3a4c6594049bf547b2e301753892f874a68" | ||
"tarballHash": "0x8ad50122a488d5051ae716c35b5545d6d530a4b0201ce1bf6d630835f947af1f" | ||
} |
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
9223