Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
piwonskp committed Oct 15, 2024
1 parent a3fbeba commit e735d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions starknet/src/L1_messages_proxy/contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub mod L1MessagesProxy {
/// `block_number` to the `header_store`'s `receive_from_l1` function for processing.
#[l1_handler]
fn receive_from_l1(
ref self: ContractState, from_address: felt252, pararent_hash: u256, block_number: u256
ref self: ContractState, from_address: felt252, parent_hash: u256, block_number: u256
) {
assert!(
from_address == self.get_l1_messages_sender().into(),
Expand All @@ -104,7 +104,7 @@ pub mod L1MessagesProxy {
let block_number: u64 = block_number.try_into().expect('felt_to_u64_fail');

let header_store = self.l1_headers_store.read();
header_store.receive_from_l1(pararent_hash, block_number);
header_store.receive_from_l1(parent_hash, block_number);
}

// *************************************************************************
Expand Down

0 comments on commit e735d03

Please sign in to comment.