-
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.
SECFIND-244: Add notifyAndAttachCanister to canisters API (#6126)
# Motivation We want to recover from interrupted canister creation in the frontend code. To do this we should be able to notify the CMC and attach a canister without first making a transfer, as the transfer has already happened before the process got interrupted. See [this doc](https://docs.google.com/document/d/1hjMSTzjnVbU9Q4rJk233M3uNcKC-RLhme25nahHpTZg/edit?tab=t.0#heading=h.qtiuv2x3gsjy) for details. # Changes 1. Add `notifyAndAttachCanister` which can be used to recover canister creation based on an existing ICP transfer. # Tests 1. Added unit tests. 2. Cleaned up the existing test on which the new test was based, by using fake time instead of stubbing out `setTimeout` and not mocking `console.log` as nothing gets logged and this just makes debugging harder. 3. Tested manually in a branch with the end-to-end solution. # Todos - [ ] Add entry to changelog (if necessary). not yet
- Loading branch information
Showing
2 changed files
with
121 additions
and
9 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