Socket
Socket
Sign inDemoInstall

web3-core-method

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-core-method - npm Package Compare versions

Comparing version 1.0.0-beta.35 to 1.0.0-beta.36

10

package.json
{
"name": "web3-core-method",
"namespace": "ethereum",
"version": "1.0.0-beta.35",
"version": "1.0.0-beta.36",
"description": "Creates the methods on the web3 modules. This is an internal package.",

@@ -11,7 +11,7 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-core-method",

"underscore": "1.8.3",
"web3-core-helpers": "1.0.0-beta.35",
"web3-core-promievent": "1.0.0-beta.35",
"web3-core-subscriptions": "1.0.0-beta.35",
"web3-utils": "1.0.0-beta.35"
"web3-core-helpers": "1.0.0-beta.36",
"web3-core-promievent": "1.0.0-beta.36",
"web3-core-subscriptions": "1.0.0-beta.36",
"web3-utils": "1.0.0-beta.36"
}
}

@@ -201,3 +201,3 @@ /*

intervalId = null,
receiptString = '',
receiptJSON = '',
gasProvided = (_.isObject(payload.params[0]) && payload.params[0].gas) ? payload.params[0].gas : null,

@@ -209,3 +209,2 @@ isContractDeployment = _.isObject(payload.params[0]) &&

// add custom send Methods

@@ -365,11 +364,9 @@ var _ethereumCalls = [

} else {
if(receipt) {
receiptString = JSON.stringify(receipt, null, 2);
}
receiptJSON = JSON.stringify(receipt, null, 2);
if (receipt.status === false || receipt.status === '0x0') {
utils._fireError(new Error("Transaction has been reverted by the EVM:\n" + receiptString),
utils._fireError(new Error("Transaction has been reverted by the EVM:\n" + receiptJSON),
defer.eventEmitter, defer.reject);
} else {
utils._fireError(
new Error("Transaction ran out of gas. Please provide more gas:\n" + receiptString),
new Error("Transaction ran out of gas. Please provide more gas:\n" + receiptJSON),
defer.eventEmitter, defer.reject);

@@ -570,3 +567,3 @@ }

// Send the actual transaction
if(isSendTx && _.isObject(payload.params[0]) && !payload.params[0].gasPrice) {
if(isSendTx && _.isObject(payload.params[0]) && typeof payload.params[0].gasPrice === 'undefined') {

@@ -573,0 +570,0 @@ var getGasPrice = (new Method({

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc