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 to wasmvm v0.14.0-rc1 #508

Merged
merged 3 commits into from
Apr 30, 2021
Merged

Upgrade to wasmvm v0.14.0-rc1 #508

merged 3 commits into from
Apr 30, 2021

Conversation

alpe
Copy link
Contributor

@alpe alpe commented Apr 29, 2021

Upgrade to wasmvm v0.14.0-rc1

Deactivated ibc_reflect_test

@alpe alpe requested a review from ethanfrey April 29, 2021 14:18
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

Nice

if sec < 0 {
panic("Block (unix) time must never be negative ")
nano := ctx.BlockTime().UnixNano()
if nano < 1 {
Copy link
Member

Choose a reason for hiding this comment

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

A 0 time is well supported in this case. It is serialized as "0" because of string in

Time    uint64 `json:"time,string"`

. But this way works as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMHO there is no realistic scenario with timestamp 0 and we should fail fast. While genesis block has height 0 it does contain a >0 timestamp.

@ethanfrey
Copy link
Member

Fixing contracts here: CosmWasm/cosmwasm#910

I will compile and try to fix the test now

@codecov
Copy link

codecov bot commented Apr 29, 2021

Codecov Report

Merging #508 (f4b588d) into master (9264176) will increase coverage by 0.13%.
The diff coverage is 89.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #508      +/-   ##
==========================================
+ Coverage   58.54%   58.68%   +0.13%     
==========================================
  Files          43       43              
  Lines        4525     4504      -21     
==========================================
- Hits         2649     2643       -6     
+ Misses       1660     1644      -16     
- Partials      216      217       +1     
Impacted Files Coverage Δ
x/wasm/types/types.go 51.35% <66.66%> (+8.01%) ⬆️
x/wasm/ibc.go 60.00% <100.00%> (-2.59%) ⬇️
x/wasm/keeper/handler_plugin.go 84.26% <100.00%> (-0.18%) ⬇️
x/wasm/keeper/handler_plugin_encoders.go 78.94% <100.00%> (-0.96%) ⬇️
x/wasm/keeper/keeper.go 85.06% <0.00%> (+0.43%) ⬆️

@alpe
Copy link
Contributor Author

alpe commented Apr 30, 2021

@ethanfrey thanks a lot for the contract fix 🚀

@alpe alpe merged commit 3d4b3d1 into master Apr 30, 2021
@alpe alpe deleted the wasmvm_14-rc1 branch April 30, 2021 06:26
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.

3 participants