web3-core-helpers
Advanced tools
Comparing version 1.7.4 to 1.7.5-rc.0
@@ -238,14 +238,16 @@ /* | ||
} | ||
if (receipt.blockNumber !== null) | ||
receipt.blockNumber = utils.hexToNumber(receipt.blockNumber); | ||
if (receipt.transactionIndex !== null) | ||
receipt.transactionIndex = utils.hexToNumber(receipt.transactionIndex); | ||
receipt.cumulativeGasUsed = utils.hexToNumber(receipt.cumulativeGasUsed); | ||
receipt.gasUsed = utils.hexToNumber(receipt.gasUsed); | ||
if (!this.hexFormat) { | ||
if (receipt.blockNumber !== null) | ||
receipt.blockNumber = utils.hexToNumber(receipt.blockNumber); | ||
if (receipt.transactionIndex !== null) | ||
receipt.transactionIndex = utils.hexToNumber(receipt.transactionIndex); | ||
receipt.cumulativeGasUsed = utils.hexToNumber(receipt.cumulativeGasUsed); | ||
receipt.gasUsed = utils.hexToNumber(receipt.gasUsed); | ||
if (receipt.effectiveGasPrice) { | ||
receipt.effectiveGasPrice = utils.hexToNumber(receipt.effectiveGasPrice); | ||
} | ||
} | ||
if (Array.isArray(receipt.logs)) { | ||
receipt.logs = receipt.logs.map(outputLogFormatter); | ||
} | ||
if (receipt.effectiveGasPrice) { | ||
receipt.effectiveGasPrice = utils.hexToNumber(receipt.effectiveGasPrice); | ||
} | ||
if (receipt.contractAddress) { | ||
@@ -252,0 +254,0 @@ receipt.contractAddress = utils.toChecksumAddress(receipt.contractAddress); |
{ | ||
"name": "web3-core-helpers", | ||
"version": "1.7.4", | ||
"version": "1.7.5-rc.0", | ||
"description": "Web3 core tools helper for sub packages. This is an internal package.", | ||
@@ -17,4 +17,4 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-helpers", | ||
"dependencies": { | ||
"web3-eth-iban": "1.7.4", | ||
"web3-utils": "1.7.4" | ||
"web3-eth-iban": "1.7.5-rc.0", | ||
"web3-utils": "1.7.5-rc.0" | ||
}, | ||
@@ -26,3 +26,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "77005c072a64fdd364eace821df0c39388871102" | ||
"gitHead": "2dcf1423b6a277def289e7c6cf96faf5c690910d" | ||
} |
@@ -280,9 +280,13 @@ /* | ||
if (receipt.blockNumber !== null) | ||
receipt.blockNumber = utils.hexToNumber(receipt.blockNumber); | ||
if (receipt.transactionIndex !== null) | ||
receipt.transactionIndex = utils.hexToNumber(receipt.transactionIndex); | ||
receipt.cumulativeGasUsed = utils.hexToNumber(receipt.cumulativeGasUsed); | ||
receipt.gasUsed = utils.hexToNumber(receipt.gasUsed); | ||
if(!this.hexFormat){ | ||
if (receipt.blockNumber !== null) | ||
receipt.blockNumber = utils.hexToNumber(receipt.blockNumber); | ||
if (receipt.transactionIndex !== null) | ||
receipt.transactionIndex = utils.hexToNumber(receipt.transactionIndex); | ||
receipt.cumulativeGasUsed = utils.hexToNumber(receipt.cumulativeGasUsed); | ||
receipt.gasUsed = utils.hexToNumber(receipt.gasUsed); | ||
if (receipt.effectiveGasPrice) { | ||
receipt.effectiveGasPrice = utils.hexToNumber(receipt.effectiveGasPrice) | ||
} | ||
} | ||
if (Array.isArray(receipt.logs)) { | ||
@@ -292,5 +296,2 @@ receipt.logs = receipt.logs.map(outputLogFormatter); | ||
if (receipt.effectiveGasPrice) { | ||
receipt.effectiveGasPrice = utils.hexToNumber(receipt.effectiveGasPrice) | ||
} | ||
if (receipt.contractAddress) { | ||
@@ -297,0 +298,0 @@ receipt.contractAddress = utils.toChecksumAddress(receipt.contractAddress); |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
60601
1543
1
+ Addedweb3-eth-iban@1.7.5-rc.0(transitive)
+ Addedweb3-utils@1.7.5-rc.0(transitive)
- Removedweb3-eth-iban@1.7.4(transitive)
- Removedweb3-utils@1.7.4(transitive)
Updatedweb3-eth-iban@1.7.5-rc.0
Updatedweb3-utils@1.7.5-rc.0