-
Notifications
You must be signed in to change notification settings - Fork 404
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
Update to wasmvm 2.0.0-rc.1 #1804
Conversation
eae0e65
to
b31e7c4
Compare
@webmaster128 Any idea why the CI docker-image libwasmvm check is failing? |
I did not check the error yet but you need to update those lines for sure: https://github.com/CosmWasm/wasmd/blob/main/Dockerfile#L18-L21 |
I think it would be valuable to do as many of the Probably in follow-up PRs items in here as well. This PR then serves as a go-to-place for every other user of wasmvm (which right now is primarily wasmd forks and the Wasm Light Client). |
Changes look good so far! To make the CI pass you need to update the Dockerfile both version and checksum for libwasmvm. |
@pinosu @webmaster128 Does one of you know the difference between the different |
I think it would be pretty cool to test both, the old (stargate) and the new (any) message type to ensure wasmd supports both. I don't know about the 1_1 one. it was added here: https://github.com/CosmWasm/wasmd/pull/1055/files |
Could you add the cosmwasm_2_0 capability to the README (on top of #1805)? |
1afff07
to
5984896
Compare
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.
Good stuff! Not done reviwwing but here is a start
The test-system job seems to fail sporadically. Is it just a timing thing? |
Co-authored-by: Simon Warta <[email protected]>
Yes, unfortunately since we added the system test for the upgrade, sporadically it fails for timeout |
If you look at the logs and the implementation of
to get block times of 2.11s in production or
to aim for 250ms block times in CI. So I think the |
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.
Very very nice solution
Do we have an integration test somewhere that shows how a submessage error is returned to a contract unredacted? This is a major feature in CosmWasm 2.0 which we should highlight and test, even if creating such a test is a bunch of work. |
Good point, I added a test now that instantiates two reflect instances and makes one send a submessage that fails to the other one. It then checks the error message the first contract got. |
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.
Great work! 💯 LGTM 👍
This is unused since #1804
Very WIP, main goal is to get it to compile and pass current tests
TODOs:
[]string
Array[C]
type replacementsredactError
call conditional infunc (d MessageDispatcher) DispatchSubmessages