From ccc6d822424be9b257e63b0d71f2d46f2523fe3e Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 27 Aug 2017 04:35:24 +0200 Subject: [PATCH] canonicalize account info JSON when collecting them --- src/wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet.ts b/src/wallet.ts index b892e2e4b..72c8a70f8 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -2413,7 +2413,7 @@ export class Wallet { const senderWiresSet = new Set(); await this.q().iter(Stores.reserves).map((x) => { if (x.senderWire) { - senderWiresSet.add(JSON.stringify(x.senderWire)); + senderWiresSet.add(canonicalJson(x.senderWire)); } }).run(); const senderWires = Array.from(senderWiresSet).map((x) => JSON.parse(x));