Skip to content

Commit 1e3fa33

Browse files
authored
fix: correct typos and spacing in wasm keeper comments (#2339)
* Update msg_dispatcher.go * Update query_plugins.go * Update recurse_test.go
1 parent 546c3ce commit 1e3fa33

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

x/wasm/keeper/msg_dispatcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type replyer interface {
3636
reply(ctx sdk.Context, contractAddress sdk.AccAddress, reply wasmvmtypes.Reply) ([]byte, error)
3737
}
3838

39-
// MessageDispatcher coordinates message sending and submessage reply/ state commits
39+
// MessageDispatcher coordinates message sending and submessage reply/state commits
4040
type MessageDispatcher struct {
4141
messenger Messenger
4242
keeper replyer

x/wasm/keeper/query_plugins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var _ wasmvmtypes.Querier = QueryHandler{}
5353
func (q QueryHandler) Query(request wasmvmtypes.QueryRequest, gasLimit uint64) ([]byte, error) {
5454
// set a limit for a subCtx
5555
sdkGas := q.gasRegister.FromWasmVMGas(gasLimit)
56-
// discard all changes/ events in subCtx by not committing the cached context
56+
// discard all changes/events in subCtx by not committing the cached context
5757
subCtx, _ := q.Ctx.WithGasMeter(storetypes.NewGasMeter(sdkGas)).CacheContext()
5858

5959
// make sure we charge the higher level context even on panic

x/wasm/keeper/recurse_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type recurseResponse struct {
3737
Hashed []byte `json:"hashed"`
3838
}
3939

40-
// number os wasm queries called from a contract
40+
// number of wasm queries called from a contract
4141
var totalWasmQueryCounter int
4242

4343
func initRecurseContract(t *testing.T) (contract sdk.AccAddress, ctx sdk.Context, keeper *Keeper) {

0 commit comments

Comments
 (0)