Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use const Principal for default faucet principal #3482

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

ericswanson-dfinity
Copy link
Member

Description

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).

How Has This Been Tested?

Added a test

@mergify mergify bot merged commit 3056145 into master Dec 19, 2023
172 of 173 checks passed
@mergify mergify bot deleted the const-principal-consistency branch December 19, 2023 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants