Skip to content

Commit

Permalink
Merge pull request #1000 from zingolabs/add_debugs_to_inputs
Browse files Browse the repository at this point in the history
add Debug to transaction builder-reported types
  • Loading branch information
nuttycom authored Oct 4, 2023
2 parents b73c51f + b5e2475 commit e6fa567
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions zcash_client_backend/src/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ pub(crate) mod tests {
transparent::{fees as transparent, OutPoint, TxOut},
};

#[derive(Debug)]
pub(crate) struct TestTransparentInput {
pub outpoint: OutPoint,
pub coin: TxOut,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ impl fmt::Display for Error {
/// An uninhabited type that allows the type of [`TransparentBuilder::inputs`]
/// to resolve when the transparent-inputs feature is not turned on.
#[cfg(not(feature = "transparent-inputs"))]
#[derive(Debug)]
enum InvalidTransparentInput {}

#[cfg(not(feature = "transparent-inputs"))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{

/// This trait provides a minimized view of a transparent input suitable for use in
/// fee and change computation.
pub trait InputView {
pub trait InputView: std::fmt::Debug {
/// The outpoint to which the input refers.
fn outpoint(&self) -> &OutPoint;
/// The previous output being spent.
Expand All @@ -18,7 +18,7 @@ pub trait InputView {

/// This trait provides a minimized view of a transparent output suitable for use in
/// fee and change computation.
pub trait OutputView {
pub trait OutputView: std::fmt::Debug {
/// Returns the value of the output being created.
fn value(&self) -> Amount;
/// Returns the script corresponding to the newly created output.
Expand Down

0 comments on commit e6fa567

Please sign in to comment.