Socket
Socket
Sign inDemoInstall

web3-core-helpers

Package Overview
Dependencies
51
Maintainers
4
Versions
137
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.4 to 1.7.5-rc.0

20

lib/formatters.js

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc