From 292160f7e979a0d9fdea7430f0d26b2dc1122a16 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 16 Nov 2020 14:12:37 +0100 Subject: fix tip record creation, migrate DB --- packages/taler-wallet-core/src/util/helpers.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/taler-wallet-core/src/util/helpers.ts') diff --git a/packages/taler-wallet-core/src/util/helpers.ts b/packages/taler-wallet-core/src/util/helpers.ts index ae4b0359e..570df441d 100644 --- a/packages/taler-wallet-core/src/util/helpers.ts +++ b/packages/taler-wallet-core/src/util/helpers.ts @@ -146,3 +146,7 @@ export function strcmp(s1: string, s2: string): number { } return 0; } + +export function j2s(x: any): string { + return JSON.stringify(x, undefined, 2); +} \ No newline at end of file -- cgit v1.2.3