diff --git a/starknet-core/src/types/messaging.rs b/starknet-core/src/types/messaging.rs index ae420ebc..5d04a636 100644 --- a/starknet-core/src/types/messaging.rs +++ b/starknet-core/src/types/messaging.rs @@ -54,7 +54,7 @@ impl L1HandlerTransaction { pub fn parse_msg_to_l2(&self) -> MsgToL2 { // TODO: is that necessary? As the sequencer // itself is the one firing this kind of transaction? - assert!(self.calldata.len() >= 2); + assert!(self.calldata.len() >= 1); // Ok to unwrap as the sequencer already checks for address ranges // even if the `from_address` in `l1_handler` is still `felt252` type in cairo.