Skip to content

Commit 27c84d2

Browse files
committed
fix: make calldata empty bytes array
1 parent 0ebc530 commit 27c84d2

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/tasks/submit/prep.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{
66
use alloy::{
77
consensus::{Header, SimpleCoder},
88
network::{TransactionBuilder, TransactionBuilder4844},
9-
primitives::{B256, U256},
9+
primitives::{B256, Bytes, U256},
1010
providers::{Provider, WalletProvider},
1111
rpc::types::TransactionRequest,
1212
sol_types::SolCall,
@@ -105,19 +105,7 @@ impl<'a> SubmitPrep<'a> {
105105
};
106106
debug!(?header.hostBlockNumber, "built zenith block header");
107107

108-
let data = Zenith::submitBlockCall {
109-
header,
110-
v,
111-
r,
112-
s,
113-
_4: self
114-
.block
115-
.host_transactions()
116-
.iter()
117-
.flat_map(|b| b.iter().cloned())
118-
.collect::<alloy::primitives::Bytes>(),
119-
}
120-
.abi_encode();
108+
let data = Zenith::submitBlockCall { header, v, r, s, _4: Bytes::new() }.abi_encode();
121109

122110
let sidecar = self.block.encode_blob::<SimpleCoder>().build()?;
123111

0 commit comments

Comments
 (0)