Skip to content

Commit

Permalink
feat: make error public access on failed receipt
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos V <[email protected]>
  • Loading branch information
carlosvdr committed Aug 16, 2024
1 parent 04b134a commit 7180b86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tap_core/src/receipt/received_receipt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ impl ReceiptWithState<Checking> {
}
}

impl ReceiptWithState<Failed> {
pub fn error(self) -> ReceiptError {
self._state.error
}
}

impl<S> ReceiptWithState<S>
where
S: ReceiptState,
Expand Down

0 comments on commit 7180b86

Please sign in to comment.