return 0 bal when user not in locked funds store
parent
953e402ad3
commit
8976bfa8a7
|
@ -31,7 +31,9 @@ func (k Keeper) LockedFunds(goCtx context.Context, req *types.QueryLockedFundsRe
|
|||
var userAmtStr string
|
||||
userAmtStr, ok = lockedUsers.Users[req.Owner]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("user %s has not locked any funds", req.Owner)
|
||||
// doesn't exist in dict -> 0 funds locked
|
||||
userAmtStr = "0"
|
||||
// return nil, fmt.Errorf("user %s has not locked any funds", req.Owner)
|
||||
}
|
||||
|
||||
return &types.QueryLockedFundsResponse{
|
||||
|
|
Loading…
Reference in New Issue