Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bigint toJson trailing space #764

Merged
merged 1 commit into from
Oct 31, 2023
Merged

Conversation

dgdg-app
Copy link
Contributor

@dgdg-app dgdg-app commented Sep 13, 2023

Template literal was compiling incorrectly, causing a space to be added in the middle of the BigInt conversion of DelegationChain.fromJson(), causing a throw on AuthClient.create(), causing _deleteStorage() to be called, preventing some users from remaining authenticated to call anything after connecting.

Description

...

Fixes # (issue)

Users not being able to make calls after an otherwise successful connect.

How Has This Been Tested?

Chrome v116, manual e2e testing found the error on connecting to stoic wallet with affected version of Chrome, the pathway of the throw explains the condition users not being able to make calls, unverified if it solves the problem but it looks like it should. Chrome v117 (beta) does not have this issue on most devices.

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

Template literal was compiling incorrectly, causing a space to be added in the middle of the BigInt conversion, causing a throw on AuthClient.create(), causing _deleteStorage() to be called, preventing some users from being authenticated to call anything after connecting.
@dgdg-app dgdg-app requested a review from a team as a code owner September 13, 2023 17:24
@ghost
Copy link

ghost commented Sep 13, 2023

Dear @dgdg-app,

In order to potentially merge your code in this open-source repository and therefore proceed with your contribution, we need to have your approval on DFINITY's CLA1.

If you decide to agree with it, please visit this issue and read the instructions there.

— The DFINITY Foundation

Footnotes

  1. Contributor License Agreement

@ghost
Copy link

ghost commented Sep 13, 2023

Dear @dgdg-app,

In order to potentially merge your code in this open-source repository and therefore proceed with your contribution, we need to have your approval on DFINITY's CLA1.

If you decide to agree with it, please visit this issue and read the instructions there.

— The DFINITY Foundation

Footnotes

  1. Contributor License Agreement

@krpeacock krpeacock changed the title Update delegation.ts fix: bigint toJson trailing space Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants