From 7a390f32fded19523d23ae087fd89a8ec3b4b737 Mon Sep 17 00:00:00 2001 From: Thore Weilbier Date: Fri, 15 May 2020 15:36:48 +0200 Subject: [PATCH] Split parameter for setWallet function Related to: #376 --- src/TLNetwork.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/TLNetwork.ts b/src/TLNetwork.ts index 8d9bdd20..a71c326c 100644 --- a/src/TLNetwork.ts +++ b/src/TLNetwork.ts @@ -163,11 +163,14 @@ export class TLNetwork { ) ) - this.setWallet(walletType, this.relayProvider, chainId, { + this.setWallet( + walletType, + this.relayProvider, + chainId, identityFactoryAddress, identityImplementationAddress, nonceMechanism - }) + ) this.setSigner(web3Provider, this.wallet) this.currencyNetwork = new CurrencyNetwork(this.relayProvider) @@ -266,7 +269,9 @@ export class TLNetwork { walletType: string, provider: TLProvider, chainId: number, - { identityFactoryAddress, identityImplementationAddress, nonceMechanism } + identityFactoryAddress: string, + identityImplementationAddress: string, + nonceMechanism: NonceMechanism ): void { let wallet: TLWallet