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/4.22.400] changed CardanoAPI to function as a singleton with no dependency on this #3267

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

vsubhuman
Copy link
Contributor

@vsubhuman vsubhuman commented Aug 24, 2023

Some users are encountering issues, when using certain dApps, that CardanoAPI functions are being called with undefined this, which is most probably caused by said dApps calling the functions as higher order and not using .bind to do it properly. Rather than telling users to go and report it to these dApps to use instances properly, we can just make an update on our side and change the api to function as a singleton internally, since logically there is no real reason to ever have more than a single instance of it anyway. The usage of this is removed in the API object entirely.

@vsubhuman vsubhuman added this to the 4.22.400 milestone Aug 24, 2023
@vsubhuman vsubhuman requested review from yushih and neuodev August 24, 2023 21:42
@neuodev
Copy link
Contributor

neuodev commented Aug 24, 2023

[autoscirpt] Jira Ticket: [External] User is not able to unlock liquidity on dApp

Nebyt
Nebyt previously approved these changes Aug 25, 2023
@sonarqube-yoroi
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vsubhuman
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants