Skip to content

Commit

Permalink
Improve error message in example oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sliman4 committed Dec 26, 2024
1 parent 4cf47e2 commit d5e5078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/example-consumer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Contract {
#[private]
pub fn on_response(&self, #[callback_unwrap] result: Option<Response>) -> bool {
result
.expect("Response is None")
.expect("Oracle didn't submit a response in time")
.response_data
.to_lowercase()
.contains("yes")
Expand Down

0 comments on commit d5e5078

Please sign in to comment.