Skip to content

Commit

Permalink
delete useless comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aquarius-kuchain committed Aug 18, 2020
1 parent c8955ee commit 25476d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x/asset/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,8 @@ func handleMsgBurn(ctx chainTypes.Context, k keeper.AssetCoinsKeeper, msg *types
return nil, sdkerrors.Wrapf(err, "get coin stat from coin %s", msg.Amount.String())
}

// if coins cannot be issue, if there is 1000 blocks after coin created, no one can issue
if !stat.CanBurn {
return nil, sdkerrors.Wrapf(types.ErrAssetCoinCannotBeBurn,
"coin %s cannot be burn", msg.Amount.String())
return nil, sdkerrors.Wrapf(types.ErrAssetCoinCannotBeBurn, "coin %s cannot be burn", msg.Amount.String())
}

if err := k.Burn(ctx.Context(), msgData.Id, msgData.Amount); err != nil {
Expand Down

0 comments on commit 25476d0

Please sign in to comment.