aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib/fakebank_bank_accounts_withdrawals.c
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-05-23 18:08:03 +0200
committerFlorian Dold <florian@dold.me>2024-05-23 18:08:03 +0200
commit71c87d483230167f20426d286dae1d3f2ed24b99 (patch)
tree9bd75a6b28a50b0a9ae9a512f2152fc09d283ba1 /src/bank-lib/fakebank_bank_accounts_withdrawals.c
parentb7204f04d94a324b62e1fac16c74dfb2508a6c24 (diff)
fakebank: allow wallet to select withdrawal amount
Diffstat (limited to 'src/bank-lib/fakebank_bank_accounts_withdrawals.c')
-rw-r--r--src/bank-lib/fakebank_bank_accounts_withdrawals.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bank-lib/fakebank_bank_accounts_withdrawals.c b/src/bank-lib/fakebank_bank_accounts_withdrawals.c
index bb435d975..d956a591f 100644
--- a/src/bank-lib/fakebank_bank_accounts_withdrawals.c
+++ b/src/bank-lib/fakebank_bank_accounts_withdrawals.c
@@ -96,6 +96,7 @@ TALER_FAKEBANK_bank_account_withdrawals_ (
&wo->reserve_pub)
: GNUNET_JSON_pack_string ("selected_reserve_pub",
NULL)),
- TALER_JSON_pack_amount ("amount",
- &wo->amount));
+ GNUNET_JSON_pack_allow_null (
+ TALER_JSON_pack_amount ("amount",
+ wo->amount)));
}