Skip to content

Commit

Permalink
UnexpectedBlockKind nit
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Sep 13, 2023
1 parent 4105b77 commit f364bda
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdk/src/client/api/high_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ impl Client {
self.get_outputs_with_metadata(&input_ids).await
} else {
Err(Error::UnexpectedBlockKind {
actual: wrapper.block().kind(),
expected: BasicBlock::KIND,
actual: wrapper.block().kind(),
})
}
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/client/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ pub enum Error {
#[error("missing BIP32 chain to sign with")]
MissingBip32Chain,
/// Unexpected block kind.
#[error("unexpected block kind, got {actual}, expected {expected}")]
UnexpectedBlockKind { actual: u8, expected: u8 },
#[error("unexpected block kind: expected {expected}, found {actual}")]
UnexpectedBlockKind { expected: u8, actual: u8 },
/// Missing transaction payload.
#[error("missing transaction payload")]
MissingTransactionPayload,
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/wallet/account/operations/syncing/outputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ where
}
} else {
Err(ClientError::UnexpectedBlockKind {
actual: wrapper.block().kind(),
expected: BasicBlock::KIND,
actual: wrapper.block().kind(),
}
.into())
}
Expand Down

0 comments on commit f364bda

Please sign in to comment.