Skip to content

Commit

Permalink
improve wording in tokenfactory force transfer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sotnikov-s committed Jun 14, 2024
1 parent db871ba commit e32aa4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/tokenfactory/keeper/bankactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ func (k Keeper) forceTransfer(ctx sdk.Context, amount sdk.Coin, fromAddr, toAddr
}

if k.isModuleAccount(ctx, transferFromAcc) {
return status.Errorf(codes.Internal, "force transfer from module acc not available")
return status.Errorf(codes.Internal, "force transfer from module accounts is forbidden")
}

if k.isModuleAccount(ctx, transferToAcc) {
return status.Errorf(codes.Internal, "force transfer to module acc not available")
return status.Errorf(codes.Internal, "force transfer to module accounts is forbidden")
}

return k.bankKeeper.SendCoins(ctx, transferFromAcc, transferToAcc, sdk.NewCoins(amount))
Expand Down

0 comments on commit e32aa4f

Please sign in to comment.