From 569c26de075a1e9a6c6a94191a7b5d5341899fdb Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Thu, 18 Jul 2024 14:14:33 -0400 Subject: [PATCH] pcli: disable warning post-mainnet --- 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 b308769aac..691111cc42 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(); }