web3-core-method
Advanced tools
Comparing version 1.0.0-beta.35 to 1.0.0-beta.36
{ | ||
"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({ |
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
22183
493
+ Addedweb3-core-helpers@1.0.0-beta.36(transitive)
+ Addedweb3-core-promievent@1.0.0-beta.36(transitive)
+ Addedweb3-core-subscriptions@1.0.0-beta.36(transitive)
+ Addedweb3-eth-iban@1.0.0-beta.36(transitive)
+ Addedweb3-utils@1.0.0-beta.36(transitive)
- Removedweb3-core-helpers@1.0.0-beta.35(transitive)
- Removedweb3-core-promievent@1.0.0-beta.35(transitive)
- Removedweb3-core-subscriptions@1.0.0-beta.35(transitive)
- Removedweb3-eth-iban@1.0.0-beta.35(transitive)
- Removedweb3-utils@1.0.0-beta.35(transitive)
Updatedweb3-utils@1.0.0-beta.36