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

refactor: extract save function from component AddTokenModal #1506

Conversation

AntonioVentilii-DFINITY
Copy link
Collaborator

Motivation

Since we would like to have a common component for the AddTokenReview, we first extract the save function and use it as service.

Changes

  • Mirror function save to saveErc20Contract.
  • Adapt component AddTokenModal.

Tests

Manual test on replica showed unchanged behavior.

@AntonioVentilii-DFINITY AntonioVentilii-DFINITY marked this pull request as ready for review June 20, 2024 16:31
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY requested a review from a team as a code owner June 20, 2024 16:31
Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already approving, just on minor suggestion

@AntonioVentilii-DFINITY AntonioVentilii-DFINITY merged commit 7fbd330 into main Jun 21, 2024
6 checks passed
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY deleted the refactor/extracting-save-service-from-add-erc20-token branch June 21, 2024 09:22
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.

2 participants