Skip to content

Commit

Permalink
pcli: print address in ceremony command
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Oct 31, 2023
1 parent c8ae17b commit 084e267
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/bin/pcli/src/command/ceremony.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl CeremonyCmd {
bid,
} => {
println!("¸,ø¤º°` initiating summoning participation `°º¤ø,¸");
println!("submitting bid for contribution slot: {}", bid);

let index = match *phase {
1 => AddressIndex {
account: 0,
Expand All @@ -113,9 +113,15 @@ impl CeremonyCmd {
},
_ => anyhow::bail!("phase must be 1 or 2."),
};
handle_bid(app, *coordinator_address, index, bid).await?;
let address = app.config.full_viewing_key.payment_address(index).0;

println!(
"submitting bid {} for contribution slot from address {}",
bid, address
);

handle_bid(app, *coordinator_address, index, bid).await?;

println!("connecting to coordinator...");
// After we bid, we need to wait a couple of seconds just for the transaction to be
// picked up by the coordinator. Else, there is a race wherein the coordinator will kick the
Expand Down

0 comments on commit 084e267

Please sign in to comment.