Skip to content

Commit

Permalink
Add SpendableCoins to Bankkepper, improve readability of tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
toschdev committed Nov 6, 2023
1 parent fda2d65 commit d5a51b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/docs/02-guide/06-tokenfactory/01-tokenfactory.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ In the `x/tokenfactory/client/cli/tx_denom.go` file, update the client applicati

**For `CmdUpdateDenom()`:**

- Reduce the number of arguments to 5, excluding supply, precision, and ticker, and modify the usage descriptions accordingly.
- Reduce the number of arguments to 5, excluding `supply`, `precision`, and `ticker`, and modify the usage descriptions accordingly.

Also, update the tests in `x/tokenfactory/client/cli/tx_denom_test.go` to reflect these changes.

Expand Down Expand Up @@ -276,7 +276,7 @@ func (k msgServer) UpdateDenom(goCtx context.Context, msg *types.MsgUpdateDenom)
msg.Denom,
)
if !isFound {
return nil, sdkerrors.Wrap(sdkerrors.ErrKeyNotFound, "index not set")
return nil, sdkerrors.Wrap(sdkerrors.ErrKeyNotFound, "Denom to update not found")
}

// Checks if the the msg owner is the same as the current owner
Expand Down Expand Up @@ -331,6 +331,7 @@ type AccountKeeper interface {
type BankKeeper interface {
SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}
```

Expand Down

0 comments on commit d5a51b1

Please sign in to comment.