commit 6c3635e2ff0c73085853c35adc515ee4a0c3bb78
parent 9208e55b8c3e72761f161a54483c99b9c2ba769b
Author: Florian Dold <florian@dold.me>
Date: Tue, 7 Jan 2025 16:24:58 +0100
-minor fixes
Diffstat:
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/packages/taler-util/src/types-taler-exchange.ts b/packages/taler-util/src/types-taler-exchange.ts
@@ -408,6 +408,8 @@ export interface ExchangeKeysJson {
currency: string;
+ asset_type: string;
+
currency_specification?: CurrencySpecification;
/**
@@ -948,6 +950,7 @@ export const codecForExchangeKeysJson = (): Codec<ExchangeKeysJson> =>
.deprecatedProperty("rewards_allowed")
.property("exchange_pub", codecForEddsaPublicKey())
.property("exchange_sig", codecForEddsaSignature())
+ .property("asset_type", codecForString())
.build("ExchangeKeysJson");
export const codecForWireFeesJson = (): Codec<WireFeesJson> =>
diff --git a/packages/taler-util/src/types-taler-wallet.ts b/packages/taler-util/src/types-taler-wallet.ts
@@ -2507,6 +2507,14 @@ export interface WithdrawUriInfoResponse {
confirmTransferUrl?: string;
currency: string;
amount: AmountString | undefined;
+
+ /**
+ * Set to true if the user is allowed to edit the amount.
+ *
+ * Note that even with a non-editable amount, the amount
+ * might be undefined at the beginning of the withdrawal
+ * process.
+ */
editableAmount: boolean;
maxAmount: AmountString | undefined;
wireFee: AmountString | undefined;
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts
@@ -2571,8 +2571,6 @@ export async function getExchangeWithdrawalInfo(
throw Error("exchange is in invalid state");
}
- logger.info(`exchange ready summary: ${j2s(exchange)}`);
-
const ret: ExchangeWithdrawalDetails = {
exchangePaytoUris: paytoUris,
exchangeWireAccounts,