From 4dbc32bfd3e98e252d0020e93922e36764071869 Mon Sep 17 00:00:00 2001 From: Daniel Olshansky Date: Wed, 2 Oct 2024 12:33:46 -0700 Subject: [PATCH] Add TODO --- x/gov/keeper/subspace.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/gov/keeper/subspace.go b/x/gov/keeper/subspace.go index cbee3a010..664abee2a 100644 --- a/x/gov/keeper/subspace.go +++ b/x/gov/keeper/subspace.go @@ -2,9 +2,9 @@ package keeper import ( "fmt" - "github.com/pokt-network/pocket-core/codec" "os" + "github.com/pokt-network/pocket-core/codec" sdk "github.com/pokt-network/pocket-core/types" "github.com/pokt-network/pocket-core/x/gov/types" ) @@ -213,6 +213,7 @@ func (k Keeper) ModifyParam(ctx sdk.Ctx, aclKey string, paramValue []byte, owner k.Logger(ctx).Error(types.ErrSubspaceNotFound(types.ModuleName, subspaceName).Error()) os.Exit(1) } + // TODO(#1617): Check the return value of `Update` and handle errors appropriately _ = space.Update(ctx, []byte(paramKey), paramValue) k.spaces[subspaceName] = space // create the event