diff --git a/Cargo.lock b/Cargo.lock index 68801fe..5b87b18 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -474,7 +474,7 @@ checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8" [[package]] name = "ledger_device_sdk" -version = "1.19.2" +version = "1.19.3" dependencies = [ "const-zero", "include_gif", diff --git a/ledger_device_sdk/Cargo.toml b/ledger_device_sdk/Cargo.toml index 97f4f47..02b061b 100644 --- a/ledger_device_sdk/Cargo.toml +++ b/ledger_device_sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ledger_device_sdk" -version = "1.19.2" +version = "1.19.3" authors = ["yhql", "yogh333", "agrojean-ledger", "kingofpayne"] edition = "2021" license.workspace = true diff --git a/ledger_device_sdk/src/libcall/swap.rs b/ledger_device_sdk/src/libcall/swap.rs index 25ee84b..c019964 100644 --- a/ledger_device_sdk/src/libcall/swap.rs +++ b/ledger_device_sdk/src/libcall/swap.rs @@ -30,6 +30,7 @@ pub struct PrintableAmountParams { pub amount: [u8; 16], pub amount_len: usize, pub amount_str: *mut i8, + pub is_fee: bool, } impl Default for PrintableAmountParams { @@ -38,6 +39,7 @@ impl Default for PrintableAmountParams { amount: [0; 16], amount_len: 0, amount_str: core::ptr::null_mut(), + is_fee: false, } } } @@ -130,6 +132,9 @@ pub fn get_printable_amount_params(arg0: u32) -> PrintableAmountParams { let mut printable_amount_params: PrintableAmountParams = Default::default(); + debug_print("==> GET_IS_FEE\n"); + printable_amount_params.is_fee = params.is_fee == true; + debug_print("==> GET_AMOUNT_LENGTH\n"); printable_amount_params.amount_len = params.amount_length as usize;