Skip to content

Commit

Permalink
deduct collection fee on creation (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 authored Jan 8, 2024
1 parent 1c85cab commit 3684101
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x/onft/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ func (m msgServer) CreateDenom(goCtx context.Context, msg *types.MsgCreateDenom)
denomCreationFee.String(),
)
}
err = m.Keeper.distributionKeeper.FundCommunityPool(
ctx,
sdk.NewCoins(denomCreationFee),
sender,
)
if err != nil {
return nil, err
}
if err := m.Keeper.SaveDenom(ctx,
msg.Id,
msg.Symbol,
Expand Down

0 comments on commit 3684101

Please sign in to comment.