diff options
author | ms <ms@taler.net> | 2021-11-13 12:53:48 +0100 |
---|---|---|
committer | ms <ms@taler.net> | 2021-11-13 12:55:15 +0100 |
commit | 9692f589c687a2ba39a705ca4238cf123f444c61 (patch) | |
tree | 009e873d2ab1fa89c141b8ebb3d4775fdaaad62e /packages/taler-util/src | |
parent | 50b9f2167cb4acfae2158bc3c7e1f7173064195d (diff) | |
download | wallet-core-9692f589c687a2ba39a705ca4238cf123f444c61.tar.xz |
Bring euFin-based tests to pass.
Note: timetravel-withdraw is now failing for both
pybank and eufin. That is likely due to the wallet
not refreshing expired denominations.
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/taleruri.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/taler-util/src/taleruri.ts b/packages/taler-util/src/taleruri.ts index 09c70682a..b487c73ae 100644 --- a/packages/taler-util/src/taleruri.ts +++ b/packages/taler-util/src/taleruri.ts @@ -57,6 +57,13 @@ export function parseWithdrawUri(s: string): WithdrawUriResult | undefined { const host = parts[0].toLowerCase(); const pathSegments = parts.slice(1, parts.length - 1); + /** + * The statement below does not tolerate a slash-ended URI. + * This results in (1) the withdrawalId being passed as the + * empty string, and (2) the bankIntegrationApi ending with the + * actual withdrawal operation ID. That can be fixed by + * trimming the parts-list. FIXME + */ const withdrawId = parts[parts.length - 1]; const p = [host, ...pathSegments].join("/"); |