Skip to content

Commit

Permalink
fix(connext): provide seed as request body for /connect
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Ranna committed Jul 22, 2020
1 parent 0c25509 commit 2760fb0
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 2760fb0

Please sign in to comment.