aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-11 17:46:06 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-11 17:46:06 +0100
commitc87a0d55145f140b1f104437ecdd1a1ca1040186 (patch)
treea7ffa0c89520a573360d6fd4a65bf7727888a1c4 /src/wallet.ts
parent2f441cd1b9e069a0976750b075d36de1f051a0e3 (diff)
downloadwallet-core-c87a0d55145f140b1f104437ecdd1a1ca1040186.tar.xz
show next url to go after tipping
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index 1966db768..a597fd5bc 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -329,7 +329,7 @@ export const WALLET_PROTOCOL_VERSION = "2:0:0";
* In the future we might consider adding migration functions for
* each version increment.
*/
-export const WALLET_DB_VERSION = 21;
+export const WALLET_DB_VERSION = 22;
const builtinCurrencies: CurrencyRecord[] = [
{
@@ -2862,7 +2862,7 @@ export class Wallet {
* Get planchets for a tip. Creates new planchets if they don't exist already
* for this tip. The tip is uniquely identified by the merchant's domain and the tip id.
*/
- async getTipPlanchets(merchantDomain: string, tipId: string, amount: AmountJson, deadline: number, exchangeUrl: string): Promise<TipPlanchetDetail[]> {
+ async getTipPlanchets(merchantDomain: string, tipId: string, amount: AmountJson, deadline: number, exchangeUrl: string, nextUrl: string): Promise<TipPlanchetDetail[]> {
let tipRecord = await this.q().get(Stores.tips, [tipId, merchantDomain]);
if (!tipRecord) {
await this.updateExchangeFromUrl(exchangeUrl);
@@ -2876,6 +2876,7 @@ export class Wallet {
deadline,
exchangeUrl,
merchantDomain,
+ nextUrl,
planchets,
tipId,
};