Skip to content

Commit

Permalink
fix: set aggregator context when params updated by assetsmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed Aug 15, 2024
1 parent 28fde00 commit eea41e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/oracle/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"strconv"
"strings"

"github.com/ExocoreNetwork/exocore/x/oracle/keeper/cache"
"github.com/ExocoreNetwork/exocore/x/oracle/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand Down Expand Up @@ -100,5 +101,7 @@ func (k Keeper) RegisterNewTokenAndSetTokenFeeder(ctx sdk.Context, oInfo *types.
})

k.SetParams(ctx, p)
_ = GetAggregatorContext(ctx, k)
cs.AddCache(cache.ItemP(p))
return nil
}

0 comments on commit eea41e6

Please sign in to comment.