Skip to content

Commit

Permalink
Split parameter for setWallet function
Browse files Browse the repository at this point in the history
Related to: #376
  • Loading branch information
weilbith committed May 15, 2020
1 parent ddcc37d commit 7a390f3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/TLNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 7a390f3

Please sign in to comment.