From a0b61095822865582e2cca25ae6f9c01c5a66a82 Mon Sep 17 00:00:00 2001 From: Zaki Manian Date: Fri, 9 Aug 2024 12:52:44 -0400 Subject: [PATCH 1/2] Print the position id when generating a position Resolves issue #4792 --- crates/bin/pcli/src/command/tx.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bin/pcli/src/command/tx.rs b/crates/bin/pcli/src/command/tx.rs index 80a54d00fb..c2b0d7e7c3 100644 --- a/crates/bin/pcli/src/command/tx.rs +++ b/crates/bin/pcli/src/command/tx.rs @@ -957,6 +957,8 @@ impl TxCmd { let position = order.as_position(&asset_cache, OsRng)?; tracing::info!(?position); + println!("Position id:{}", position.id().to_string()); + let plan = Planner::new(OsRng) .set_gas_prices(gas_prices) .set_fee_tier(order.fee_tier().into()) From 7e2f59c09955c9957fd618e9978267da61684ce4 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Fri, 9 Aug 2024 15:40:51 -0400 Subject: [PATCH 2/2] Update crates/bin/pcli/src/command/tx.rs Signed-off-by: Henry de Valence --- crates/bin/pcli/src/command/tx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bin/pcli/src/command/tx.rs b/crates/bin/pcli/src/command/tx.rs index c2b0d7e7c3..8582e7faf1 100644 --- a/crates/bin/pcli/src/command/tx.rs +++ b/crates/bin/pcli/src/command/tx.rs @@ -957,7 +957,7 @@ impl TxCmd { let position = order.as_position(&asset_cache, OsRng)?; tracing::info!(?position); - println!("Position id:{}", position.id().to_string()); + println!("Position id: {}", position.id()); let plan = Planner::new(OsRng) .set_gas_prices(gas_prices)