Skip to content

Commit 991c476

Browse files
authored
Merge pull request #667 from LIT-Protocol/feature/drel-294-cant-connect-litcontracts-client-using-sdk-v670
fix: `connection` is undefined when connecting to LitContracts
2 parents 5a42c4c + 4f58f0d commit 991c476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/contracts-sdk/src/lib/contracts-sdk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,12 @@ export class LitContracts {
415415
}
416416

417417
this.log('Your Signer:', this.signer);
418-
this.log('Your Provider:', this.provider.connection);
418+
this.log('Your Provider:', this.provider?.connection!);
419419

420420
if (!this.provider) {
421421
this.log('No provider found. Will try to use the one from the signer.');
422422
this.provider = this.signer.provider;
423-
this.log('Your Provider(from signer):', this.provider.connection);
423+
this.log('Your Provider(from signer):', this.provider?.connection!);
424424
}
425425

426426
const addresses: any = await LitContracts.getContractAddresses(

0 commit comments

Comments
 (0)