Skip to content

Commit

Permalink
fix(web3-core-methods): fix aspect operation response process error
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbeng committed Nov 23, 2023
1 parent 84da791 commit 9841977
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/web3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/web3.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/web3-core-method/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ Method.prototype._confirmTransaction = function (defer, result, payload) {
// CHECK for normal tx check for receipt only
.then(async function (receipt) {
if (!isContractDeployment && !isAspectDeployment && !promiseResolved) {
if (!isAspectCall && !receipt.outOfGas &&
if (!receipt.outOfGas &&
(!gasProvided || gasProvided !== receipt.gasUsed) &&
(receipt.status === true || receipt.status === '0x1' || typeof receipt.status === 'undefined')) {
defer.eventEmitter.emit('receipt', receipt);
Expand All @@ -494,9 +494,9 @@ Method.prototype._confirmTransaction = function (defer, result, payload) {
} else {
receiptJSON = JSON.stringify(receipt, null, 2);

if (receipt.status === false || receipt.status === '0x0' || isAspectCall) {
if (receipt.status === false || receipt.status === '0x0') {
try {
if ( (method.handleRevert || isAspectCall) &&
if (method.handleRevert &&
(method.call === 'eth_sendTransaction' || method.call === 'eth_sendRawTransaction'))
{
var txReplayOptions = payload.params[0];
Expand Down

0 comments on commit 9841977

Please sign in to comment.