Skip to content

Commit

Permalink
Fix query target in documentation (#2656) (#2670)
Browse files Browse the repository at this point in the history
The API actually allows calling any application's service.
  • Loading branch information
jvff authored Oct 21, 2024
1 parent 7cfc82e commit ad3f72e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linera-sdk/src/contract/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ where
wit::emit(&name.into(), key, value);
}

/// Queries our application service as an oracle and returns the response.
/// Queries an application service as an oracle and returns the response.
///
/// Should only be used with queries where it is very likely that all validators will compute
/// the same result, otherwise most block proposals will fail.
Expand Down
2 changes: 1 addition & 1 deletion linera-sdk/src/contract/test_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ where
.push_back((hash, response));
}

/// Queries our application service as an oracle and returns the response.
/// Queries an application service as an oracle and returns the response.
///
/// Should only be used with queries where it is very likely that all validators will compute
/// the same result, otherwise most block proposals will fail.
Expand Down

0 comments on commit ad3f72e

Please sign in to comment.