-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SECFIND-244: Extract getCanisterCreationCmcAccountIdentifierHex from …
…createCanister (#6112) # Motivation When creating a canister using the CMC, ICP are first transferred to a specific account of the CMC. We want to find such transaction to recover from interrupt canister creation. See [this doc](https://docs.google.com/document/d/1hjMSTzjnVbU9Q4rJk233M3uNcKC-RLhme25nahHpTZg/edit?tab=t.0#heading=h.qtiuv2x3gsjy) for details. In this PR we just extract a utility function to calculate the CMC account identifier. # Changes 1. Extract `getCanisterCreationCmcAccountIdentifierHex` from `createCanister`. 2. Use `getCanisterCreationCmcAccountIdentifierHex` in `createCanister`. # Tests Unit test added. # Todos - [ ] Add entry to changelog (if necessary). not yet --------- Co-authored-by: Yusef Habib <[email protected]> Co-authored-by: Carly Gundy <[email protected]>
- Loading branch information
1 parent
39efc04
commit 43a1a9e
Showing
3 changed files
with
44 additions
and
8 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
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