Skip to content

Commit

Permalink
gas check fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nivida committed Oct 11, 2019
1 parent 5e8738e commit d9087b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-core-method/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ Method.prototype._confirmTransaction = function (defer, result, payload) {
if (!isContractDeployment && !promiseResolved) {

if(!receipt.outOfGas &&
(!gasProvided || gasProvided !== receipt.gasUsed) &&
(!gasProvided || gasProvided !== utils.numberToHex(receipt.gasUsed)) &&
(receipt.status === true || receipt.status === '0x1' || typeof receipt.status === 'undefined')) {
defer.eventEmitter.emit('receipt', receipt);
defer.resolve(receipt);
Expand Down

0 comments on commit d9087b2

Please sign in to comment.