Skip to content

Commit

Permalink
feat(BEEF): update beef error codes in swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-4chain committed Jun 10, 2024
1 parent d129c75 commit 8a62b8a
Show file tree
Hide file tree
Showing 5 changed files with 367 additions and 99 deletions.
2 changes: 1 addition & 1 deletion internal/validator/default/default_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (v *DefaultValidator) ValidateBeef(beefTx *beef.BEEF, skipFeeValidation, sk
}

if err := beef.EnsureAncestorsArePresentInBump(beefTx.GetLatestTx(), beefTx); err != nil {
return validator.NewError(err, api.ErrBeefMinedAncestorsNotFound)
return validator.NewError(err, api.ErrStatusMinedAncestorsNotFound)
}

return nil
Expand Down
Loading

0 comments on commit 8a62b8a

Please sign in to comment.