Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Wasm runner fix #8236

Closed
wants to merge 2 commits into from
Closed

Wasm runner fix #8236

wants to merge 2 commits into from

Conversation

lexfrl
Copy link
Contributor

@lexfrl lexfrl commented Mar 27, 2018

There was a runtime error

thread 'main' panicked at 'Wasm schedule expected to exist while checking wasm contract. Misconfigured client?', src/libcore/option.rs:891:5

thread 'main' panicked at 'Wasm schedule expected to exist while checking wasm contract. Misconfigured client?', src/libcore/option.rs:891:5
@lexfrl lexfrl added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Mar 27, 2018
@lexfrl lexfrl requested a review from NikVolf March 27, 2018 15:57
@@ -130,7 +130,7 @@ pub fn run_fixture(fixture: &Fixture) -> Vec<Fail> {
Err(e) => { return Fail::load(e); },
};

let mut ext = FakeExt::new();
let mut ext = FakeExt::new().with_wasm();
Copy link
Contributor

Choose a reason for hiding this comment

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

#8209

It was already fixed, how diff comes up?..

@@ -41,8 +41,8 @@ pub struct Fixture {

#[derive(Deserialize, Debug)]
pub struct StorageEntry {
pub key: Uint,
Copy link
Contributor

Choose a reason for hiding this comment

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

why? uint provide more flexibility, you don't need to write 0x0000000000000000..00000000 for 0x

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but with explicit H256 you’ll never mess up with endianess on converting to bytes

@NikVolf NikVolf added A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 27, 2018
@5chdn 5chdn added this to the 1.11 milestone Mar 28, 2018
@5chdn 5chdn added A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. and removed A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. labels Apr 9, 2018
@5chdn 5chdn modified the milestones: 1.11, 1.12 Apr 24, 2018
@NikVolf NikVolf closed this May 4, 2018
@5chdn 5chdn deleted the wasm-runner-fix branch May 7, 2018 12:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants