Skip to content

Commit

Permalink
Use k.newQueryHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
ulbqb committed Sep 15, 2022
1 parent 66687fc commit 12fecbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions x/wasm/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (k Keeper) OnOpenChannel(
}

env := types.NewEnv(ctx, contractAddr)
querier := NewQueryHandler(ctx, k.wasmVMQueryHandler, contractAddr, k.getGasMultiplier(ctx))
querier := k.newQueryHandler(ctx, contractAddr)

gas := k.runtimeGasForContract(ctx)
wasmStore := types.NewWasmStore(prefixStore)
Expand Down Expand Up @@ -68,7 +68,7 @@ func (k Keeper) OnConnectChannel(
}

env := types.NewEnv(ctx, contractAddr)
querier := NewQueryHandler(ctx, k.wasmVMQueryHandler, contractAddr, k.getGasMultiplier(ctx))
querier := k.newQueryHandler(ctx, contractAddr)

gas := k.runtimeGasForContract(ctx)
wasmStore := types.NewWasmStore(prefixStore)
Expand Down Expand Up @@ -101,7 +101,7 @@ func (k Keeper) OnCloseChannel(
}

params := types.NewEnv(ctx, contractAddr)
querier := NewQueryHandler(ctx, k.wasmVMQueryHandler, contractAddr, k.getGasMultiplier(ctx))
querier := k.newQueryHandler(ctx, contractAddr)

gas := k.runtimeGasForContract(ctx)
wasmStore := types.NewWasmStore(prefixStore)
Expand Down Expand Up @@ -133,7 +133,7 @@ func (k Keeper) OnRecvPacket(
}

env := types.NewEnv(ctx, contractAddr)
querier := NewQueryHandler(ctx, k.wasmVMQueryHandler, contractAddr, k.getGasMultiplier(ctx))
querier := k.newQueryHandler(ctx, contractAddr)

gas := k.runtimeGasForContract(ctx)
wasmStore := types.NewWasmStore(prefixStore)
Expand Down Expand Up @@ -169,7 +169,7 @@ func (k Keeper) OnAckPacket(
}

env := types.NewEnv(ctx, contractAddr)
querier := NewQueryHandler(ctx, k.wasmVMQueryHandler, contractAddr, k.getGasMultiplier(ctx))
querier := k.newQueryHandler(ctx, contractAddr)

gas := k.runtimeGasForContract(ctx)
wasmStore := types.NewWasmStore(prefixStore)
Expand Down Expand Up @@ -198,7 +198,7 @@ func (k Keeper) OnTimeoutPacket(
}

env := types.NewEnv(ctx, contractAddr)
querier := NewQueryHandler(ctx, k.wasmVMQueryHandler, contractAddr, k.getGasMultiplier(ctx))
querier := k.newQueryHandler(ctx, contractAddr)

gas := k.runtimeGasForContract(ctx)
wasmStore := types.NewWasmStore(prefixStore)
Expand Down

0 comments on commit 12fecbd

Please sign in to comment.