CosmWasm / CosmWasm/wasmd

Querier is passed to Migrate by reference

Open
#2,007 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
416
Forks
538
PR merge metrics
No merged PRs in 30d

Description

A reference to the [querier](https://github.com/CosmWasm/wasmd/blob/main/x/wasm/keeper/keeper.go#L571) is passed to [Migrate](https://github.com/CosmWasm/wasmd/blob/main/x/wasm/keeper/keeper.go#L576) (`&querier`) as opposed to other wasmVM methods like [Execute](https://github.com/CosmWasm/wasmd/blob/main/x/wasm/keeper/keeper.go#L420) that receive `querier` as-is. Both `Execute` and `Migrate` expect the same querier type in their [interface](https://github.com/CosmWasm/wasmd/blob/main/x/wasm/types/wasmer_engine.go#L104) declaration.

Is there a reason for this discrepancy?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.