Skip to content

Commit

Permalink
imp(transfer): switched back to using 'bz == nil'
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed May 22, 2023
1 parent 948acf8 commit 4c163f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/apps/transfer/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (k Keeper) SetPort(ctx sdk.Context, portID string) {
func (k Keeper) GetParams(ctx sdk.Context) (p types.Params) {
store := ctx.KVStore(k.storeKey)
bz := store.Get([]byte(types.ParamsKey))
if len(bz) == 0 {
if bz == nil {
panic("ibc transfer params are not set in store")
}

Expand Down

0 comments on commit 4c163f0

Please sign in to comment.