-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FOLLOW-244: Claim unclaimed neurons from the frontend (#5734)
# Motivation Staking a neuron requires 2 steps: transferring the stake and claiming the neuron. Both steps are done in ic-js. But it's possible that the process gets interrupted in between. In this case the nns-dapp canister finishes the process. We want to move this fallback mechanism to the frontend. The functionality was added in previous PRs. Here was call the service function from the wallet component to make it actually functional. # Changes 1. Call `claimNeuronsIfNeeded` from `NnsWallet`. # Tests 1. Tested manually after disabling the functionality in the canister, by reloading the page as soon as the staking process is started. 2. Unit tests added for main account, subaccount and hardware wallet account. # Todos - [x] Add entry to changelog (if necessary).
- Loading branch information
Showing
4 changed files
with
191 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters