From 52fdf6b5316ab35785081509f380c3bc8df9c91b Mon Sep 17 00:00:00 2001 From: Peter White Date: Wed, 18 Dec 2024 15:01:44 -0700 Subject: [PATCH] chore: improve uploading / calling contract message to wait for finalization --- crates/pop-cli/src/commands/call/contract.rs | 3 ++- crates/pop-cli/src/commands/up/contract.rs | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/pop-cli/src/commands/call/contract.rs b/crates/pop-cli/src/commands/call/contract.rs index 45ba0a09..ab7a826f 100644 --- a/crates/pop-cli/src/commands/call/contract.rs +++ b/crates/pop-cli/src/commands/call/contract.rs @@ -495,7 +495,8 @@ impl CallContractCommand { if let Some(payload) = maybe_payload { cli.success("Signed payload received.")?; let spinner = spinner(); - spinner.start("Calling the contract..."); + spinner + .start("Calling the contract and waiting for finalization, please be patient..."); let call_result = call_smart_contract_from_signed_payload(call_exec, payload, &self.url) diff --git a/crates/pop-cli/src/commands/up/contract.rs b/crates/pop-cli/src/commands/up/contract.rs index fed9c206..1a76911f 100644 --- a/crates/pop-cli/src/commands/up/contract.rs +++ b/crates/pop-cli/src/commands/up/contract.rs @@ -191,7 +191,9 @@ impl UpContractCommand { if let Some(payload) = maybe_payload { log::success("Signed payload received.")?; let spinner = spinner(); - spinner.start("Uploading contract..."); + spinner.start( + "Uploading the contract and waiting for finalization, please be patient...", + ); if self.upload_only { let upload_result = match upload_contract_signed(self.url.as_str(), payload)