-
Notifications
You must be signed in to change notification settings - Fork 50
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
(Regression) EVMC fails to validate contract via Sentinel #551
Comments
Can this be reproduces with testeth or any other tool? Can you add this as a JSON test to ewasm/tests? |
I'm not sure. I don't think it can be tested for unless we want to write unit test cases for hard-coded sentinel contract bytecodes.... If we had more detailed output from the sentinel contract, it would make solving issues like this a lot easier. |
I built a new version of the sentinel contract from source and tried to test a simple contract deployment. This bug persists. My rustc version:
How to reproduce locally (note: the wasm in this example is different than in the issue description. but they are both bare-bones simple and trigger the same bug): |
It looks like the sentinel itself fails to load with whatever version of wabt is shipped with hera at current master branch. |
It seems that an old version of llvm always included a linker custom section and the Manually dropping all custom sections with chisel's |
^ I get this after updating all components, using a freshly built and chiseled sentinel contract. |
Using the genesis provided here (which is the same as the ewasm testnet genesis for milestone 1), a transaction containing this wast fails to deploy:
The only output I get from Hera is:
"Sentinel has failed on contract. It is invalid."
Maybe this is intended (and the contract is in some way malformed according to wasm-chisel's validation specs), however it is completely opaque what the underlying reason for the failure is.
The text was updated successfully, but these errors were encountered: