Skip to content
Snippets Groups Projects
Commit 591f3341 authored by Éloïs's avatar Éloïs
Browse files

[feat] gva:bca: add field current_ud in PrepareSimplePaymentResp

parent bbff027a
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,7 @@ pub(super) async fn exec_req_prepare_simple_payment( ...@@ -72,6 +72,7 @@ pub(super) async fn exec_req_prepare_simple_payment(
PrepareSimplePaymentResp { PrepareSimplePaymentResp {
current_block_number: block_ref_number, current_block_number: block_ref_number,
current_block_hash: block_ref_hash, current_block_hash: block_ref_hash,
current_ud,
inputs, inputs,
inputs_sum, inputs_sum,
}, },
...@@ -211,6 +212,7 @@ mod tests { ...@@ -211,6 +212,7 @@ mod tests {
BcaRespTypeV0::PrepareSimplePayment(PrepareSimplePaymentResp { BcaRespTypeV0::PrepareSimplePayment(PrepareSimplePaymentResp {
current_block_number: 0, current_block_number: 0,
current_block_hash: Hash::default(), current_block_hash: Hash::default(),
current_ud: SourceAmount::ZERO,
inputs: vec![input], inputs: vec![input],
inputs_sum: SourceAmount::with_base0(57), inputs_sum: SourceAmount::with_base0(57),
}) })
......
...@@ -26,6 +26,7 @@ pub struct PrepareSimplePayment { ...@@ -26,6 +26,7 @@ pub struct PrepareSimplePayment {
pub struct PrepareSimplePaymentResp { pub struct PrepareSimplePaymentResp {
pub current_block_number: u32, pub current_block_number: u32,
pub current_block_hash: Hash, pub current_block_hash: Hash,
pub current_ud: SourceAmount,
pub inputs: Vec<TransactionInputV10>, pub inputs: Vec<TransactionInputV10>,
pub inputs_sum: SourceAmount, pub inputs_sum: SourceAmount,
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment