Skip to content
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

Merged
merged 6 commits into from
May 16, 2022
Merged

Upgrade wasmvm to 1.0.0 #858

merged 6 commits into from
May 16, 2022

Conversation

webmaster128
Copy link
Member

No description provided.

@@ -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)
Copy link
Member Author

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 _

Copy link
Member

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
Copy link

codecov bot commented May 16, 2022

Codecov Report

Merging #858 (76a5053) into main (ac92fdc) will increase coverage by 0.07%.
The diff coverage is 94.11%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
x/wasm/client/cli/query.go 0.00% <0.00%> (ø)
x/wasm/ibc.go 68.67% <100.00%> (+0.57%) ⬆️
x/wasm/keeper/relay.go 97.67% <100.00%> (+0.08%) ⬆️
x/wasm/keeper/keeper.go 88.27% <0.00%> (+0.34%) ⬆️

Copy link
Member

@ethanfrey ethanfrey left a 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

@@ -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)
Copy link
Member

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

Copy link
Member

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now

@ethanfrey ethanfrey merged commit a575bce into main May 16, 2022
@ethanfrey ethanfrey deleted the upgrade-wasmvm-1.0.0 branch May 16, 2022 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants