Skip to content

Commit

Permalink
fix handling of failed transactions (#2634)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikola Todorovic <[email protected]>
  • Loading branch information
zeroxbt and NZT48 authored Aug 14, 2023
1 parent fb87b50 commit b72ea67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/blockchain/implementation/web3-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ class Web3Service {
TRANSACTION_CONFIRMATIONS,
TRANSACTION_POLLING_TIMEOUT_MILLIS,
);
if (result?.status === 0) {
throw Error();
}
} catch (error) {
this.logger.warn(
`Failed executing smart contract function ${functionName}. Error: ${error.message}`,
Expand Down

0 comments on commit b72ea67

Please sign in to comment.