hot fix for the tasmota PoP issues (#403)

* hot fix for the RDDL-Tasmota PoP issues
* adjusted test case

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-05-28 14:54:31 +02:00 committed by GitHub
parent e99b614e4a
commit dd2621afde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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
}