Skip to content

Commit

Permalink
Merge pull request #189 from stratosnet/qb-1508/insufficient_balance_msg
Browse files Browse the repository at this point in the history
fix/qb-1508 fix insufficient balance error msg
  • Loading branch information
alexstratos authored Dec 9, 2022
2 parents 5d980f7 + 6dee812 commit d2eca61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/sds/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (k Keeper) Prepay(ctx sdk.Context, sender sdk.AccAddress, coins sdk.Coins)
for _, coin := range coins {
hasCoin := k.bankKeeper.HasBalance(ctx, sender, coin)
if !hasCoin {
return sdk.ZeroInt(), sdkerrors.Wrapf(sdkerrors.ErrInvalidCoins, "No valid coins to be deducted from acc %s", sender.String())
return sdk.ZeroInt(), sdkerrors.Wrapf(sdkerrors.ErrInsufficientFunds, "Insufficient balance in the acc %s", sender.String())
}
}

Expand Down

0 comments on commit d2eca61

Please sign in to comment.