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: (bitcoin module) Fix to grab bitcoin module properly #162

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

Conversation

frichards
Copy link
Contributor

@frichards frichards commented Feb 26, 2025

Description

https://ava-labs.atlassian.net/browse/CP-9900

Talking to Michal about this.

Issue:
When core web calls handlers from bitcoin vm module while connected to extension, it throws an error.
It seems like bitcoin module is not found in DAppRequestHandlerMiddleware when moduleManager.loadModule is called.

Since the context.network is set properly using the same scope, the bitcoin module shouild be found.

Changes

Instead of scope, if bitcoin, passing the chain ID. (The logic is borrowed from NetworkService.getNetwork to mimic setting context.network)

Testing

Screenshots:

Checklist for the author

Tick each of them when done or if not applicable.

  • I've covered new/modified business logic with Jest test cases.
  • I've tested the changes myself before sending it to code review and QA.

@frichards frichards added the DO NOT MERGE This PR is not meant to be merged in its current state label Feb 26, 2025
@frichards frichards changed the title fix: (bitcoin module) Fix to gran bitcoin module properly fix: (bitcoin module) Fix to grab bitcoin module properly Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DO NOT MERGE This PR is not meant to be merged in its current state
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant