Skip to content

Commit

Permalink
pcli: disable warning post-mainnet (#4864)
Browse files Browse the repository at this point in the history
## Describe your changes

Removes the testnet-specific warning message from `pcli`. I remember
merging this months ago but it is not in the main branch.

## Checklist before requesting a review

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > `pcli` changes only
  • Loading branch information
hdevalence authored Sep 23, 2024
1 parent dadedc8 commit c0e4403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bin/pcli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use pcli::{command::*, opt::Opt};

#[tokio::main]
async fn main() -> Result<()> {
// Display a warning message to the user so they don't get upset when all their tokens are lost.
if std::env::var("PCLI_UNLEASH_DANGER").is_err() {
// Preserved for posterity and memory
if std::env::var("PCLI_DISPLAY_WARNING").is_ok() {
pcli::warning::display();
}

Expand Down

0 comments on commit c0e4403

Please sign in to comment.