Skip to content
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

Get state does not sync with layer one chain #325

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

murerfel
Copy link
Contributor

Closes #163

@murerfel murerfel self-assigned this Jul 28, 2021
@murerfel murerfel requested a review from clangenb July 28, 2021 08:23
Copy link
Contributor

@clangenb clangenb left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@@ -49,7 +49,7 @@ pub fn run_enclave_tests(matches: &ArgMatches, port: &str) {
if matches.is_present("all") || matches.is_present("ecall") {
println!("Running ecall Tests");
println!(" testing get_state()");
get_state_works(&enclave);
get_state_works(&enclave).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This wasn't a bug - I just changed the function to return a result, moving the unwrap from inside the test function to the test client 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes but still, I might have forgotten to add it here. :) Although, you probably got a warning of an unused result here.

@murerfel murerfel merged commit 31daf3b into master Jul 28, 2021
@murerfel murerfel deleted the feature/fm-get-state-without-block-sync-163 branch July 28, 2021 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

substratee-worker-test --ecall fails with chain_relay_db not found
2 participants