Skip to content

Commit

Permalink
refactor(queries): remove stray comments
Browse files Browse the repository at this point in the history
Signed-off-by: ⭐️NINIKA⭐️ <[email protected]>
  • Loading branch information
DCNick3 committed Jul 18, 2024
1 parent c34dc97 commit cc4ef4e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion client/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ impl From<ResponseReport> for ClientQueryError {

impl QueryExecutor for Client {
type Cursor = ClientQueryCursor;
// TODO: split these two errors maybe? (it's more useful for smart contracts though..)
type Error = ClientQueryError;
type SingleError = ClientQueryError;

Expand Down
2 changes: 0 additions & 2 deletions client/tests/integration/queries/query_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ fn non_existent_account_is_specific_error() {
.execute_single()
.expect_err("Should error");

// NOTE: with the current implementation, the error returned is less specific than it was before
// (we no longer get the context that it is the entire domain that doesn't exist, not just the account)
match err {
ClientQueryError::Single(SingleQueryError::ExpectedOneGotNone) => {}
x => panic!("Unexpected error: {x:?}"),
Expand Down

0 comments on commit cc4ef4e

Please sign in to comment.