ethers-providers
Advanced tools
Comparing version 2.1.11 to 2.1.12
{ | ||
"name": "ethers-providers", | ||
"version": "2.1.11", | ||
"version": "2.1.12", | ||
"description": "Service provider for Ethereum wallet library.", | ||
@@ -5,0 +5,0 @@ "bugs": { |
@@ -24,2 +24,3 @@ 'use strict'; | ||
concat: convert.concat, | ||
stripZeros: convert.stripZeros, | ||
@@ -194,3 +195,3 @@ namehash: require('ethers-utils/namehash'), | ||
// 0 address; correct this to be a real address | ||
if (transaction.to && utils.bigNumberify(transaction.to).isZero) { | ||
if (transaction.to && utils.bigNumberify(transaction.to).isZero()) { | ||
transaction.to = '0x0000000000000000000000000000000000000000'; | ||
@@ -214,11 +215,11 @@ } | ||
var raw = [ | ||
utils.hexlify(transaction.nonce), | ||
utils.hexlify(transaction.gasPrice), | ||
utils.hexlify(transaction.gasLimit), | ||
utils.stripZeros(utils.hexlify(transaction.nonce)), | ||
utils.stripZeros(utils.hexlify(transaction.gasPrice)), | ||
utils.stripZeros(utils.hexlify(transaction.gasLimit)), | ||
(transaction.to || "0x"), | ||
utils.hexlify(transaction.value || '0x'), | ||
utils.stripZeros(utils.hexlify(transaction.value || '0x')), | ||
utils.hexlify(transaction.data || '0x'), | ||
utils.hexlify(transaction.v || '0x'), | ||
utils.hexlify(transaction.r), | ||
utils.hexlify(transaction.s), | ||
utils.stripZeros(utils.hexlify(transaction.v || '0x')), | ||
utils.stripZeros(utils.hexlify(transaction.r)), | ||
utils.stripZeros(utils.hexlify(transaction.s)), | ||
]; | ||
@@ -225,0 +226,0 @@ |
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
50386
1303