Skip to content

Commit

Permalink
Merge pull request #1743 from ExchangeUnion/fix/connext-connect
Browse files Browse the repository at this point in the history
fix(connext): provide seed as request body for /connect
  • Loading branch information
sangaman authored Jul 22, 2020
2 parents 0c25509 + 2760fb0 commit 0371ff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/connextclient/ConnextClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ class ConnextClient extends SwapClient {
return await parseResponseBody<ConnextInitWalletResponse>(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<ConnextConfigResponse>(res);
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0371ff8

Please sign in to comment.