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-import-for-check-balance-for-parcel-bundler #184

Open
wants to merge 2 commits into
base: v2
Choose a base branch
from

Conversation

Harman-singh-waraich
Copy link

Similar to #182

I brought up the previous issue(#182) in lifi-discord, the issue was fixed with getTokenBalance but a similar issue remained with execute function.

Description :

  • Importing checkBalance from "./balance" causes error while Swapping in the widget or using execute in sdk , when building with parcel, Scope hoisting introduces errors where an export is undefined.

More info here : parcel-bundler/parcel#6071

Screenshot 2024-04-18 at 11 14 28 PM Changes:
  • Changed the import of checkBalance function and directly imported it from ./balance/checkBalance , swapping now works perfectly
  • Updated the unit test with the new import changes

Tested out the changes by using the library locally and Swapping works fine with these changes

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

Successfully merging this pull request may close these issues.

None yet

1 participant