Skip to content

Commit

Permalink
do not fail if transaction is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Oct 4, 2023
1 parent b071e5f commit 27b4896
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions eth/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,13 @@ func (x *MintSignerRunner) ValidateMint(mint *models.Mint) (bool, error) {
return false, errors.New("Error fetching transaction: " + err.Error())
}

if tx.Tx == "" || tx.TxResult.Code != 0 {
log.Debug("[MINT SIGNER] Transaction not found or failed")
if tx == nil || tx.Tx == "" {
log.Debug("[MINT SIGNER] Transaction not found")
return false, errors.New("Transaction not found")
}

if tx.TxResult.Code != 0 {
log.Debug("[MINT SIGNER] Transaction failed")
return false, nil
}

Expand Down

0 comments on commit 27b4896

Please sign in to comment.