-
Notifications
You must be signed in to change notification settings - Fork 410
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
Conversation
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.
Nice
if sec < 0 { | ||
panic("Block (unix) time must never be negative ") | ||
nano := ctx.BlockTime().UnixNano() | ||
if nano < 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.
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.
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.
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.
Fixing contracts here: CosmWasm/cosmwasm#910 I will compile and try to fix the test now |
Codecov Report
@@ 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
|
@ethanfrey thanks a lot for the contract fix 🚀 |
Upgrade to wasmvm v0.14.0-rc1
Deactivated
ibc_reflect_test