Skip to content

Commit

Permalink
fix linter and added error check to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
miladz68 committed Oct 2, 2023
1 parent 7472676 commit 55de998
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/asset/ft/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,8 @@ $ %s tx grant <grantee_addr> burn --burn-limit 100ucore --expiration 1667979596
return fmt.Errorf("burn-limit should be greater than zero")
}
authorization = types.NewBurnAuthorization(limitCoins)
default:
return errors.Errorf("invalid authorization types, %s", args[1])
}

expire, err := getExpireTime(cmd)
Expand Down
1 change: 1 addition & 0 deletions x/asset/ft/types/burn_authorization.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint:dupl // this code is identical to the mint part, but they should not be merged.
package types

import (
Expand Down
1 change: 1 addition & 0 deletions x/asset/ft/types/mint_authorization.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint:dupl // this code is identical to the burn part, but they should not be merged.
package types

import (
Expand Down

0 comments on commit 55de998

Please sign in to comment.