From 42da2d3a0fb876e070892fa9fc16a91a7106991f Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Tue, 29 Oct 2024 10:12:41 -0500 Subject: [PATCH] docs: add debug for fee --- librustzcash-wrapper/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/librustzcash-wrapper/src/lib.rs b/librustzcash-wrapper/src/lib.rs index 73b52cd..6abf905 100644 --- a/librustzcash-wrapper/src/lib.rs +++ b/librustzcash-wrapper/src/lib.rs @@ -2007,6 +2007,12 @@ pub extern "C" fn rust_wrapper_create_transaction( } } if build { + let fee_result = if net { + main_builder.get_fee(&FeeRule::standard()) + } else { + test_builder.get_fee(&FeeRule::standard()) + }; + println!("fee: {:?}", fee_result); let (spend_params_in, output_params_in) = load_sapling_parameters(); //let spend_params_in: Vec = marshall_from_haskell_var(sapspend, sapspend_len, RW); let spend_params_reader = Cursor::new(spend_params_in);