diff --git a/starknet-core/src/types/messaging.rs b/starknet-core/src/types/messaging.rs index 2121006c..ae420ebc 100644 --- a/starknet-core/src/types/messaging.rs +++ b/starknet-core/src/types/messaging.rs @@ -50,8 +50,8 @@ impl MsgToL2 { impl L1HandlerTransaction { /// Parses and returns the `MsgToL2` from - /// the transaction content. - pub fn parse_msg_l1_to_l2(&self) -> MsgToL2 { + /// the transaction's content. + 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); @@ -172,7 +172,7 @@ mod test { calldata, }; - let msg = tx.parse_msg_l1_to_l2(); + let msg = tx.parse_msg_to_l2(); assert!( msg.hash()