-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade wasmvm to 1.0.0 #858
Conversation
x/wasm/keeper/relay.go
Outdated
@@ -34,7 +34,8 @@ func (k Keeper) OnOpenChannel( | |||
querier := k.newQueryHandler(ctx, contractAddr) | |||
|
|||
gas := k.runtimeGasForContract(ctx) | |||
gasUsed, execErr := k.wasmVM.IBCChannelOpen(codeInfo.CodeHash, env, msg, prefixStore, cosmwasmAPI, querier, ctx.GasMeter(), gas, costJSONDeserialization) | |||
// TODO: we probably want to use the response somehow | |||
_, gasUsed, execErr := k.wasmVM.IBCChannelOpen(codeInfo.CodeHash, env, msg, prefixStore, cosmwasmAPI, querier, ctx.GasMeter(), gas, costJSONDeserialization) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I don't know what do to with the IBC3ChannelOpenResponse
in _
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will fix this up
Codecov Report
@@ Coverage Diff @@
## main #858 +/- ##
==========================================
+ Coverage 58.97% 59.04% +0.07%
==========================================
Files 52 52
Lines 6177 6183 +6
==========================================
+ Hits 3643 3651 +8
+ Misses 2266 2265 -1
+ Partials 268 267 -1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I will make these ibcv3 adjustments
x/wasm/keeper/relay.go
Outdated
@@ -34,7 +34,8 @@ func (k Keeper) OnOpenChannel( | |||
querier := k.newQueryHandler(ctx, contractAddr) | |||
|
|||
gas := k.runtimeGasForContract(ctx) | |||
gasUsed, execErr := k.wasmVM.IBCChannelOpen(codeInfo.CodeHash, env, msg, prefixStore, cosmwasmAPI, querier, ctx.GasMeter(), gas, costJSONDeserialization) | |||
// TODO: we probably want to use the response somehow | |||
_, gasUsed, execErr := k.wasmVM.IBCChannelOpen(codeInfo.CodeHash, env, msg, prefixStore, cosmwasmAPI, querier, ctx.GasMeter(), gas, costJSONDeserialization) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will fix this up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now
No description provided.