Skip to content

Fix panic test #1969

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

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ This code is compiled into Wasm bytecode as part of the smart contract.
some given source code, allowing a
[similar contract verification algorithm](https://medium.com/coinmonks/how-to-verify-and-publish-on-etherscan-52cf25312945)
as Etherscan.

Building locally instead of using the docker image can
[leak some information about the directory structure of your system](https://github.com/CosmWasm/cosmwasm/issues/1918)
and makes the build non-reproducible.

- [serde-json-wasm](https://github.com/CosmWasm/serde-json-wasm) - A custom json
library, forked from `serde-json-core`. This provides an interface similar to
`serde-json`, but without any floating-point instructions (non-deterministic)
Expand Down
3 changes: 2 additions & 1 deletion contracts/hackatom/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ fn execute_panic() {
match execute_res.unwrap_err() {
VmError::RuntimeErr { msg, .. } => {
assert!(
msg.contains("Aborted: panicked at 'This page intentionally faulted'"),
msg.contains("Aborted: panicked")
&& msg.contains("This page intentionally faulted"),
"Must contain panic message"
);
assert!(msg.contains("contract.rs:"), "Must contain file and line");
Expand Down