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

Update service.go #28

Merged
merged 1 commit into from
Feb 27, 2025
Merged

Update service.go #28

merged 1 commit into from
Feb 27, 2025

Conversation

thang14
Copy link
Contributor

@thang14 thang14 commented Feb 27, 2025

This pull request includes several changes to the core/account/service.go file, focusing on refactoring the handling of the provider.id configuration and adding a new import for hex utility functions.

Refactoring and configuration handling:

  • core/account/service.go: Removed direct assignment of providerID and replaced it with a call to a new updateProviderID method in the NewAccountService constructor. [1] [2]
  • core/account/service.go: Updated the registerReloadCallback method to use the new updateProviderID method instead of directly assigning providerID.
  • core/account/service.go: Added a new method updateProviderID to handle the conversion of the provider.id from a hex string to an integer.

Imports:

  • core/account/service.go: Added a new import for github.com/ethereum/go-ethereum/common/hexutil to support the hex string conversion in the updateProviderID method.

@thang14 thang14 merged commit 63202e8 into main Feb 27, 2025
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