Skip to content

Commit

Permalink
fix expected length for calldata
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Sep 28, 2023
1 parent 1e46a01 commit e779d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starknet-core/src/types/messaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e779d46

Please sign in to comment.