diff --git a/x/wasm/keeper/options.go b/x/wasm/keeper/options.go index bef44458f9..52c1aa1b5c 100644 --- a/x/wasm/keeper/options.go +++ b/x/wasm/keeper/options.go @@ -126,7 +126,7 @@ func WithAccountPruner(x AccountPruner) Option { } func WithVMCacheMetrics(r prometheus.Registerer) Option { - return optsFn(func(k *Keeper) { + return postOptsFn(func(k *Keeper) { NewWasmVMMetricsCollector(k.wasmVM).Register(r) }) }