diff --git a/x/wasm/keeper/keeper.go b/x/wasm/keeper/keeper.go index 2c6726a7cc..91b3778cab 100644 --- a/x/wasm/keeper/keeper.go +++ b/x/wasm/keeper/keeper.go @@ -1262,6 +1262,10 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger { return moduleLogger(ctx) } +func (k *Keeper) Cleanup() { + k.wasmVM.Cleanup() +} + func (k *Keeper) SetInnerTxKeeper(innertxKeeper innertx.InnerTxKeeper) { k.innertxKeeper = innertxKeeper } diff --git a/x/wasm/simulate.go b/x/wasm/simulate.go index 457820278c..5784b12810 100644 --- a/x/wasm/simulate.go +++ b/x/wasm/simulate.go @@ -59,6 +59,7 @@ func (w *Simulator) Release() { return } proxy.PutBackStorePool(w.ctx.MultiStore().(sdk.CacheMultiStore)) + w.k.Cleanup() } func NewProxyKeeper() keeper.Keeper {