From 1e46a01ced2dd89399abe8f02fc87273ba54d6b4 Mon Sep 17 00:00:00 2001 From: glihm Date: Wed, 27 Sep 2023 21:04:40 -0600 Subject: [PATCH] fix typo --- starknet-core/src/types/messaging.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()