Commit 591f3341 authored by Éloïs's avatar Éloïs
Browse files

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

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