Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Sep 28, 2023
1 parent adb9de4 commit 1e46a01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions starknet-core/src/types/messaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 1e46a01

Please sign in to comment.