Skip to content

Commit

Permalink
chore: improve uploading / calling contract message to wait for final…
Browse files Browse the repository at this point in the history
…ization
  • Loading branch information
peterwht committed Dec 18, 2024
1 parent f5c963e commit 52fdf6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/pop-cli/src/commands/call/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion crates/pop-cli/src/commands/up/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 52fdf6b

Please sign in to comment.