commit 592fe2dc885d895656697d42514b6b61675e39fe
parent 21d4ec8568c402622dc61c549bf873b105800373
Author: Antoine A <>
Date: Wed, 18 Feb 2026 21:02:40 +0100
cyclos: setup fixes
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/taler-cyclos/src/cyclos_api/types.rs b/taler-cyclos/src/cyclos_api/types.rs
@@ -90,7 +90,6 @@ pub struct PaymentData {
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DataForTransaction {
- pub payment_type_data: PaymentData,
pub payment_types: Vec<PaymentData>,
}
diff --git a/taler-cyclos/src/setup.rs b/taler-cyclos/src/setup.rs
@@ -90,6 +90,9 @@ pub async fn setup(cfg: &Config, _reset: bool, client: &http_client::Client) ->
let accounts = client.accounts().await?;
let accounts_fmt = {
let mut s = String::new();
+ if accounts.is_empty() {
+ s.write_str(" none").unwrap();
+ }
for a in &accounts {
write!(
&mut s,
@@ -129,6 +132,9 @@ pub async fn setup(cfg: &Config, _reset: bool, client: &http_client::Client) ->
let data = client.payment_data().await?;
let payment_fmt = {
let mut s = String::new();
+ if data.payment_types.is_empty() {
+ s.write_str(" none").unwrap();
+ }
for p in &data.payment_types {
if let Some(currency) = currency {
if p.currency.ty.id == currency.ty.id {