-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use const Principal for default faucet principal (#3482)
Changes `DEFAULT_FAUCET_PRINCIPAL` from `const &str` to `const Principal` for type safety and for consistency with other principal constants (see `MAINNET_BITCOIN_CANISTER_ID`, `MAINNET_LEDGER_CANISTER_ID`, among others). Also removed the `allow_deprecated` flag since `Principal::from_slice` is no longer deprecated (to allow for this specific use case).
- Loading branch information
1 parent
1b12092
commit 3056145
Showing
3 changed files
with
16 additions
and
5 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