From 2760fb0d49bdd2e5dd63d19e6f3bc1446353357c Mon Sep 17 00:00:00 2001 From: Karl Ranna Date: Wed, 22 Jul 2020 12:49:29 +0000 Subject: [PATCH] fix(connext): provide seed as request body for /connect --- lib/connextclient/ConnextClient.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/connextclient/ConnextClient.ts b/lib/connextclient/ConnextClient.ts index a0dc644f0..b4becba13 100644 --- a/lib/connextclient/ConnextClient.ts +++ b/lib/connextclient/ConnextClient.ts @@ -196,8 +196,8 @@ class ConnextClient extends SwapClient { return await parseResponseBody(res); } - public initConnextClient = async () => { - const res = await this.sendRequest('/connect', 'POST'); + public initConnextClient = async (seedMnemonic: string) => { + const res = await this.sendRequest('/connect', 'POST', { mnemonic: seedMnemonic }); return await parseResponseBody(res); } @@ -280,7 +280,7 @@ class ConnextClient extends SwapClient { } await this.sendRequest('/health', 'GET'); await this.initWallet(this.seed); - const config = await this.initConnextClient(); + const config = await this.initConnextClient(this.seed); await this.subscribePreimage(); await this.subscribeIncomingTransfer(); const { userIdentifier } = config;