From 1dd3e2449c578d214d0c48032cd8760602200181 Mon Sep 17 00:00:00 2001 From: Anna Carroll Date: Thu, 23 Oct 2025 13:13:34 -0400 Subject: [PATCH 1/4] fix: add with_chain --- bin/roundtrip.rs | 5 ++++- bin/submit_order.rs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/roundtrip.rs b/bin/roundtrip.rs index 0676ef6..40e0455 100644 --- a/bin/roundtrip.rs +++ b/bin/roundtrip.rs @@ -101,7 +101,10 @@ async fn send_order( let send_order = SendOrder::new(signer.clone(), config.constants.clone())?; // sign the order, return it back for comparison - let signed = order.sign(signer).await?; + let signed = order + .with_chain(config.constants.system()) + .sign(signer) + .await?; // send the signed order to the transaction cache send_order.send_order(signed.clone()).await?; diff --git a/bin/submit_order.rs b/bin/submit_order.rs index b0e5181..942e8c9 100644 --- a/bin/submit_order.rs +++ b/bin/submit_order.rs @@ -103,7 +103,10 @@ async fn send_order( let send_order = SendOrder::new(signer.clone(), config.constants.clone())?; // sign the order, return it back for comparison - let signed = order.sign(signer).await?; + let signed = order + .with_chain(config.constants.system()) + .sign(signer) + .await?; tracing::Span::current().record("signed_order_signature", signed.order_hash().to_string()); debug!(?signed, "Signed order contents"); From d2d59345621618e848d781405cfc5b925cd84e01 Mon Sep 17 00:00:00 2001 From: Anna Carroll Date: Thu, 23 Oct 2025 13:14:04 -0400 Subject: [PATCH 2/4] fix: misleading log --- bin/roundtrip.rs | 2 +- bin/submit_order.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/roundtrip.rs b/bin/roundtrip.rs index 40e0455..23463b2 100644 --- a/bin/roundtrip.rs +++ b/bin/roundtrip.rs @@ -53,7 +53,7 @@ async fn main() -> eyre::Result<()> { // fill the order from the transaction cache fill_orders(&signed, signer, provider, config).await?; - info!("Order filled successfully"); + info!("Bundle sent to tx cache successfully; wait for bundle to mine."); Ok(()) } diff --git a/bin/submit_order.rs b/bin/submit_order.rs index 942e8c9..9ce7831 100644 --- a/bin/submit_order.rs +++ b/bin/submit_order.rs @@ -142,7 +142,7 @@ async fn fill_orders( // fill each individually filler.fill_individually(orders.as_slice()).await?; - info!("Order filled successfully"); + info!("Bundle sent to tx cache successfully; wait for bundle to mine."); Ok(()) } From 9197acd22994ee4c8be70e92bb225cc36af589e6 Mon Sep 17 00:00:00 2001 From: Anna Carroll Date: Thu, 23 Oct 2025 13:14:21 -0400 Subject: [PATCH 3/4] fix: stale comment --- bin/roundtrip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/roundtrip.rs b/bin/roundtrip.rs index 23463b2..91032eb 100644 --- a/bin/roundtrip.rs +++ b/bin/roundtrip.rs @@ -40,7 +40,7 @@ async fn main() -> eyre::Result<()> { let provider = connect_provider(signer.clone(), config.ru_rpc_url.clone()).await?; info!(signer_address = %signer.address(), "Connected to Signer and Provider"); - // create an example order swapping 1 rollup USDC for 1 host USDC + // create an example order let example_order = get_example_order(&config, signer.address(), args.rollup); // sign & send the order to the transaction cache From f77280439efb09b091238e2cfe85cea0b57fc687 Mon Sep 17 00:00:00 2001 From: Anna Carroll Date: Thu, 23 Oct 2025 13:14:40 -0400 Subject: [PATCH 4/4] feat: log RU transaction hashes for easier tracking --- src/filler.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/filler.rs b/src/filler.rs index 9114adc..b33d820 100644 --- a/src/filler.rs +++ b/src/filler.rs @@ -283,6 +283,10 @@ where // encode it let encoded = filled.encoded_2718(); + info!( + tx_hash = filled.hash().to_string(), + "Rollup transaction signed and encoded" + ); // add to array encoded_txs.push(Bytes::from(encoded));