Skip to content

Commit

Permalink
fix(wasm)!: fix type interface conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Oct 7, 2024
1 parent a27594a commit 6412854
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/nexus/keeper/wasmer_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ func (w *WasmerEngine) Migrate(
gasLimit uint64,
deserCost wasmvmtypes.UFraction,
) (*wasmvmtypes.Response, uint64, error) {
defer w.msgIDGenerator.IncrID(getCtx(querier))
// wasmd passes a reference to the querier only for the Migrate method
// https://github.com/CosmWasm/wasmd/blob/21ec15a5c025bc0fa8c634691dc839ab77b9a7d2/x/wasm/keeper/keeper.go#L433
defer w.msgIDGenerator.IncrID(querier.(*wasmkeeper.QueryHandler).Ctx)

Check warning on line 78 in x/nexus/keeper/wasmer_engine.go

View check run for this annotation

Codecov / codecov/patch

x/nexus/keeper/wasmer_engine.go#L78

Added line #L78 was not covered by tests

return w.WasmerEngine.Migrate(checksum, env, migrateMsg, store, goapi, querier, gasMeter, gasLimit, deserCost)
}
Expand Down

0 comments on commit 6412854

Please sign in to comment.