From 15416f3e3130ba15291bf204c3363f55dccd4d38 Mon Sep 17 00:00:00 2001 From: evalir Date: Fri, 21 Nov 2025 19:05:26 +0100 Subject: [PATCH] fix(bundle): Allow bundles with no RU txs but with host txs Bundles with host transactions only and no RU txs should be valid. --- crates/bundle/src/send/driver.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/crates/bundle/src/send/driver.rs b/crates/bundle/src/send/driver.rs index f220c30..56d1bc3 100644 --- a/crates/bundle/src/send/driver.rs +++ b/crates/bundle/src/send/driver.rs @@ -224,11 +224,16 @@ where &mut self, mut trevm: EvmNeedsTx>, ) -> DriveBundleResult> { - let bundle = &self.bundle.bundle; // -- STATELESS CHECKS -- - // Ensure that the bundle has transactions - trevm_ensure!(!bundle.txs.is_empty(), trevm, BundleError::BundleEmpty.into()); + // Ensure that the bundle has rollup OR host transactions. Completely empty bundles are not allowed. + trevm_ensure!( + !self.bundle.bundle.txs.is_empty() && !self.bundle.host_txs.is_empty(), + trevm, + BundleError::BundleEmpty.into() + ); + + let bundle = &self.bundle.bundle; // Check if the block we're in is valid for this bundle. Both must match trevm_ensure!(