ethers-providers
Advanced tools
Comparing version 2.1.13 to 2.1.14
{ | ||
"name": "ethers-providers", | ||
"version": "2.1.13", | ||
"version": "2.1.14", | ||
"description": "Service provider for Ethereum wallet library.", | ||
@@ -5,0 +5,0 @@ "bugs": { |
@@ -94,2 +94,11 @@ 'use strict'; | ||
function checkBoolean(value) { | ||
if (typeof(value) === 'boolean') { return value; } | ||
if (typeof(value) === 'string') { | ||
if (value === 'true') { return true; } | ||
if (value === 'false') { return false; } | ||
} | ||
throw new Error('invaid boolean - ' + value); | ||
} | ||
function checkUint256(uint256) { | ||
@@ -347,5 +356,8 @@ if (!utils.isHexString(uint256)) { | ||
var formatLog = { | ||
blockNumber: checkNumber, | ||
blockNumber: allowNull(checkNumber), | ||
blockHash: allowNull(checkHash), | ||
transactionIndex: checkNumber, | ||
removed: allowNull(checkBoolean), | ||
address: utils.getAddress, | ||
@@ -352,0 +364,0 @@ data: allowFalsish(utils.hexlify, '0x'), |
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
50852
1315