Skip to content

Commit

Permalink
added fix for submitting pokt tx
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Jun 10, 2024
1 parent 644f9ea commit d89372d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pokt/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ func (x *BurnExecutorRunner) HandleInvalidMint(doc *models.InvalidMint) bool {
return false
}

if res == nil || res.TransactionHash == "" {
log.Error("[BURN EXECUTOR] Invalid mint return tx hash not found")
return false
}

filter = bson.M{
"_id": doc.Id,
"status": models.StatusSigned,
Expand Down Expand Up @@ -147,6 +152,11 @@ func (x *BurnExecutorRunner) HandleBurn(doc *models.Burn) bool {
return false
}

if res == nil || res.TransactionHash == "" {
log.Error("[BURN EXECUTOR] Burn return tx hash not found")
return false
}

filter = bson.M{
"_id": doc.Id,
"status": models.StatusSigned,
Expand Down

0 comments on commit d89372d

Please sign in to comment.