mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
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:
parent
e99b614e4a
commit
dd2621afde
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user