From c0e4403be34521c28267699cdb6aeaec898a2f0c Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Mon, 23 Sep 2024 11:53:01 -0700 Subject: [PATCH] pcli: disable warning post-mainnet (#4864) ## 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 --- crates/bin/pcli/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bin/pcli/src/main.rs b/crates/bin/pcli/src/main.rs index 29f23a61b9..3f56af08c1 100644 --- a/crates/bin/pcli/src/main.rs +++ b/crates/bin/pcli/src/main.rs @@ -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(); }