Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Oct 3, 2024

Description

Fix for this: (Unable to connect using the LitContracts client)
image

Due to this was added in the PR:
https://github.com/LIT-Protocol/js-sdk/pull/639/files#diff-2dcc2c94e7788b1bbaef5e6cf9158025a2580d238f807bd3cb923bbe355eb47bR401-R406

And we need this patch for the following affected versions:

Anything <= 6.5.3 are working

…d properties of undefined (reading 'connection')

    at _LitContracts.connect (chunk-TOQGCBZM.js?v=866a89b4:58004:52)
    at signAndCombineEcdsa (lit.ts:44:22)
    at async handleSignAndCombine (App.tsx:6:22)
@Ansonhkg Ansonhkg added the 🐞 Bug Fix Something isn't working label Oct 3, 2024
@Ansonhkg Ansonhkg self-assigned this Oct 3, 2024
@Ansonhkg Ansonhkg requested a review from joshLong145 as a code owner October 3, 2024 14:10

this.log('Your Signer:', this.signer);
this.log('Your Provider:', this.provider.connection);
this.log('Your Provider:', this.provider?.connection!);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we move this log under the check for this.provider being defined.

Copy link
Collaborator Author

@Ansonhkg Ansonhkg Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean wrap it inside a if/else to check if 'connection' exists then print it out? If so, I don't think so, cus I'd like to see it connection is undefined in different environments when debug is on

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, if we want to log out when this.provider is undefined then we can keep it.

@joshLong145 joshLong145 self-requested a review October 3, 2024 14:58
@Ansonhkg Ansonhkg merged commit 991c476 into master Oct 3, 2024
4 checks passed
@Ansonhkg Ansonhkg deleted the feature/drel-294-cant-connect-litcontracts-client-using-sdk-v670 branch October 3, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 Bug Fix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants