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

core: Move token mapping initialization into loadTokenMapping fn #158

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sehyunc
Copy link
Contributor

@sehyunc sehyunc commented Jan 22, 2025

Purpose

This PR improves token mapping initialization by removing code that runs on module import that causes issues during module initialization (i.e. importing any SDK action, type, etc.). Token mapping initialization is now more explicit and only happens when loadTokenMapping is called, which is already a requirement for node consumers.

Consumers of the React SDK will likely need to be updated to invoke loadTokenMapping sufficiently early.

Testing

  • Tested locally
  • Test in testnet

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.

1 participant