@ethersproject/solidity
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -1,1 +0,1 @@ | ||
export declare const version = "solidity/5.0.1"; | ||
export declare const version = "solidity/5.0.2"; |
@@ -1,1 +0,2 @@ | ||
export const version = "solidity/5.0.1"; | ||
export const version = "solidity/5.0.2"; | ||
//# sourceMappingURL=_version.js.map |
@@ -33,3 +33,3 @@ "use strict"; | ||
let size = parseInt(match[2] || "256"); | ||
if ((size % 8 != 0) || size === 0 || size > 256) { | ||
if ((match[2] && String(size) !== match[2]) || (size % 8 !== 0) || size === 0 || size > 256) { | ||
throw new Error("invalid number type - " + type); | ||
@@ -46,4 +46,4 @@ } | ||
const size = parseInt(match[1]); | ||
if (String(size) != match[1] || size === 0 || size > 32) { | ||
throw new Error("invalid number type - " + type); | ||
if (String(size) !== match[1] || size === 0 || size > 32) { | ||
throw new Error("invalid bytes type - " + type); | ||
} | ||
@@ -71,3 +71,3 @@ if (arrayify(value).byteLength !== size) { | ||
} | ||
throw new Error("unknown type - " + type); | ||
throw new Error("invalid type - " + type); | ||
} | ||
@@ -91,1 +91,2 @@ // @TODO: Array Enum | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const version = "solidity/5.0.1"; | ||
export declare const version = "solidity/5.0.2"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "solidity/5.0.1"; | ||
exports.version = "solidity/5.0.2"; | ||
//# sourceMappingURL=_version.js.map |
@@ -34,3 +34,3 @@ "use strict"; | ||
var size = parseInt(match[2] || "256"); | ||
if ((size % 8 != 0) || size === 0 || size > 256) { | ||
if ((match[2] && String(size) !== match[2]) || (size % 8 !== 0) || size === 0 || size > 256) { | ||
throw new Error("invalid number type - " + type); | ||
@@ -47,4 +47,4 @@ } | ||
var size = parseInt(match[1]); | ||
if (String(size) != match[1] || size === 0 || size > 32) { | ||
throw new Error("invalid number type - " + type); | ||
if (String(size) !== match[1] || size === 0 || size > 32) { | ||
throw new Error("invalid bytes type - " + type); | ||
} | ||
@@ -72,3 +72,3 @@ if (bytes_1.arrayify(value).byteLength !== size) { | ||
} | ||
throw new Error("unknown type - " + type); | ||
throw new Error("invalid type - " + type); | ||
} | ||
@@ -95,1 +95,2 @@ // @TODO: Array Enum | ||
exports.sha256 = sha256; | ||
//# sourceMappingURL=index.js.map |
@@ -30,5 +30,5 @@ { | ||
}, | ||
"tarballHash": "0x670073e9170653a1132e7890bd927e938b053d13f8be01f1a14c2256ad1e5712", | ||
"tarballHash": "0xfff7ea728efebe7728dc667e7b599640559f233836bbe0be2709678eb09147b1", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.0.1" | ||
"version": "5.0.2" | ||
} |
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
16354
15