diff --git a/x/supplier/keeper/proof.go b/x/supplier/keeper/proof.go index 0dbff0855..aec052d5b 100644 --- a/x/supplier/keeper/proof.go +++ b/x/supplier/keeper/proof.go @@ -11,6 +11,7 @@ import ( func (k Keeper) UpsertProof(ctx sdk.Context, proof types.Proof) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ProofKeyPrefix)) b := k.cdc.MustMarshal(&proof) + // TODO_NEXT(@bryanchriswhite #141): Refactor keys to support multiple indices. store.Set(types.ProofKey( proof.GetSessionHeader().GetSessionId(), ), b) @@ -24,6 +25,7 @@ func (k Keeper) GetProof( ) (val types.Proof, found bool) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ProofKeyPrefix)) + // TODO_NEXT(@bryanchriswhite #141): Refactor proof keys to support multiple indices. b := store.Get(types.ProofKey( sessionId, )) @@ -38,10 +40,12 @@ func (k Keeper) GetProof( // RemoveProof removes a proof from the store func (k Keeper) RemoveProof( ctx sdk.Context, + // TODO_NEXT(@bryanchriswhite #141): Refactor proof keys to support multiple indices. index string, ) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ProofKeyPrefix)) + // TODO_NEXT(@bryanchriswhite #141): Refactor proof keys to support multiple indices. store.Delete(types.ProofKey( index, ))