fix casting/marshalling bug

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2023-10-05 17:16:20 +02:00
parent 128a406158
commit 87641aefe8
No known key found for this signature in database

View File

@ -14,7 +14,7 @@ func (k Keeper) StoreReissuance(ctx sdk.Context, reissuance types.Reissuance) {
store.Set(getReissuanceBytes(reissuance.BlockHeight), appendValue)
}
func (k Keeper) GetReissuance(ctx sdk.Context, height uint64) (val types.Challenge, found bool) {
func (k Keeper) GetReissuance(ctx sdk.Context, height uint64) (val types.Reissuance, found bool) {
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ReissuanceBlockHeightKey))
reissuance := store.Get(getReissuanceBytes(height))
if reissuance == nil {