Skip to content

Commit 7a390f3

Browse files
committed
Split parameter for setWallet function
Related to: #376
1 parent ddcc37d commit 7a390f3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/TLNetwork.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,14 @@ export class TLNetwork {
163163
)
164164
)
165165

166-
this.setWallet(walletType, this.relayProvider, chainId, {
166+
this.setWallet(
167+
walletType,
168+
this.relayProvider,
169+
chainId,
167170
identityFactoryAddress,
168171
identityImplementationAddress,
169172
nonceMechanism
170-
})
173+
)
171174
this.setSigner(web3Provider, this.wallet)
172175

173176
this.currencyNetwork = new CurrencyNetwork(this.relayProvider)
@@ -266,7 +269,9 @@ export class TLNetwork {
266269
walletType: string,
267270
provider: TLProvider,
268271
chainId: number,
269-
{ identityFactoryAddress, identityImplementationAddress, nonceMechanism }
272+
identityFactoryAddress: string,
273+
identityImplementationAddress: string,
274+
nonceMechanism: NonceMechanism
270275
): void {
271276
let wallet: TLWallet
272277

0 commit comments

Comments
 (0)