Skip to content

Commit

Permalink
hot fix for the tasmota PoP issues (#403)
Browse files Browse the repository at this point in the history
* hot fix for the RDDL-Tasmota PoP issues
* adjusted test case

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
  • Loading branch information
eckelj authored May 28, 2024
1 parent e99b614 commit dd2621a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions x/asset/keeper/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (k Keeper) GetCidsByAddress(ctx sdk.Context, address string) (cids []string

if string(addressBytes) == address {
cids = append(cids, string(cidBytes))
break
}
}
return cids, len(cids) > 0
Expand Down
4 changes: 2 additions & 2 deletions x/asset/keeper/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func TestGetAssetByPubKeys(t *testing.T) {
_ = createNAsset(keeper, ctx, 10)
assets, found := keeper.GetCidsByAddress(ctx, "plmnt_address")
assert.True(t, found)
assert.Equal(t, len(assets), 5)
assert.Equal(t, len(assets), 1) // TODO: just for HF: before 5
assets, found = keeper.GetCidsByAddress(ctx, "plmnt_address1")
assert.True(t, found)
assert.Equal(t, len(assets), 5)
assert.Equal(t, len(assets), 1) // TODO: just for HF: before 5
}

0 comments on commit dd2621a

Please sign in to comment.