[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 03/03: -minor fixes
From: |
gnunet |
Subject: |
[taler-wallet-core] 03/03: -minor fixes |
Date: |
Tue, 07 Jan 2025 16:25:04 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 6c3635e2ff0c73085853c35adc515ee4a0c3bb78
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jan 7 16:24:58 2025 +0100
-minor fixes
---
packages/taler-util/src/types-taler-exchange.ts | 3 +++
packages/taler-util/src/types-taler-wallet.ts | 8 ++++++++
packages/taler-wallet-core/src/withdraw.ts | 2 --
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
index 6210c272d..4b4c37d7d 100644
--- 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
index 90d5b88be..007b5e9af 100644
--- 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
index 0217bfb2c..952de45e4 100644
--- 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,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.