Skip to content

Commit

Permalink
fix: audit fixes (#113)
Browse files Browse the repository at this point in the history
* L-01

* G-01

* Q-01

* Revert "G-01"

This reverts commit 64679f4.
  • Loading branch information
Reecepbcups authored Jan 6, 2025
1 parent bc329aa commit 46d0c1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/manifest/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ func (ms msgServer) BurnHeldBalance(ctx context.Context, req *types.MsgBurnHeldB
if ms.k.authority != req.Authority {
return nil, fmt.Errorf("invalid authority; expected %s, got %s", ms.k.authority, req.Authority)
}

if err := req.Validate(); err != nil {
return nil, fmt.Errorf("invalid burn held message: %w", err)
}

addr, err := sdk.AccAddressFromBech32(req.Authority)
if err != nil {
return nil, err
Expand Down
File renamed without changes.

0 comments on commit 46d0c1f

Please sign in to comment.