Skip to content

Commit

Permalink
fix: fix typo & missing commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shiki-tak committed Jul 7, 2022
1 parent 18ae5e2 commit d704996
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions x/wasm/keeper/snapshotter.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package keeper

// FIXME: After applying cosmos-sdk@0.45.5
// import (
// "encoding/hex"
// "io"
Expand Down Expand Up @@ -53,7 +54,7 @@ package keeper

// ctx := sdk.NewContext(cacheMS, tmproto.Header{}, false, log.NewNopLogger())
// seenBefore := make(map[string]bool)
// var rerr error
// var err error

// ws.wasm.IterateCodeInfos(ctx, func(id uint64, info types.CodeInfo) bool {
// // Many code ids may point to the same code hash... only sync it once
Expand All @@ -67,26 +68,26 @@ package keeper
// // load code and abort on error
// wasmBytes, err := ws.wasm.GetByteCode(ctx, id)
// if err != nil {
// rerr = err
// err = err
// return true
// }

// compressedWasm, err := ioutils.GzipIt(wasmBytes)
// if err != nil {
// rerr = err
// err = err
// return true
// }

// err = snapshot.WriteExtensionItem(protoWriter, compressedWasm)
// if err != nil {
// rerr = err
// err = err
// return true
// }

// return false
// })

// return rerr
// return err
// }

// func (ws *WasmSnapshotter) Restore(
Expand Down
2 changes: 1 addition & 1 deletion x/wasm/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (
// Do not make assumptions on how much gas an operation will consume in places that are hard to adjust,
// such as hardcoding them in contracts.
//
// Please not that all gas prices returned to the wasmer engine should have this multiplied
// Please note that all gas prices returned to wasmvm should have this multiplied.
DefaultGasMultiplier uint64 = 140_000_000
// InstanceCost is how much SDK gas we charge each time we load a WASM instance.
// Creating a new instance is costly, and this helps put a recursion limit to contracts calling contracts.
Expand Down

0 comments on commit d704996

Please sign in to comment.