Skip to content

Commit

Permalink
Fix snapshot creation according to CosmWasm/wasmd#823 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cashmaney committed May 8, 2022
1 parent 670a87c commit 89a4668
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x/compute/internal/keeper/wasm_snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ func (ws *WasmSnapshotter) Snapshot(height uint64, protoWriter protoio.Writer) e
// Since codeIDs and wasm are immutible, it is never wrong to return new wasm data than the
// user requests
// ------
// cacheMS, err := ws.cms.CacheMultiStoreWithVersion(int64(height))
// if err != nil {
// return err
// }
cacheMS := ws.cms.CacheMultiStore()
cacheMS, err := ws.cms.CacheMultiStoreWithVersion(int64(height))
if err != nil {
return err
}
// cacheMS := ws.cms.CacheMultiStore()

ctx := sdk.NewContext(cacheMS, tmproto.Header{}, false, log.NewNopLogger())

Expand Down

0 comments on commit 89a4668

Please sign in to comment.