-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose memoToNeuronSubaccount and memoToNeuronAccountIdentifier (#745)
# Motivation We want to be able to claim a neuron from NNS dapp if the stake process was interrupted after the transfer but before the claim. For this we need to be able to calculate the neuron account identifier to confirm that a transaction was made for the purpose of staking. So we would like to reuse the code that calculates the account identifier of the neuron from a memo. # Changes Extract the code to calculate a neuron account identifier from `packages/nns/src/governance.canister.ts` and export it from `packages/nns/src/utils/neurons.utils.ts`. # Tests 1. Added some "change detector" unit tests. 2. The original code is covered by test coverage added in #743 # Todos - [x] Add entry to changelog (if necessary). --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
9168785
commit 398daf4
Showing
5 changed files
with
150 additions
and
73 deletions.
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
Oops, something went wrong.