Skip to content

Commit b7fc5c9

Browse files
fix(docs): update messaging links (#703)
1 parent 22c81c6 commit b7fc5c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

starknet-core/src/types/msg.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ pub struct MsgToL2 {
2323
impl MsgToL2 {
2424
/// Calculates the message hash based on the algorithm documented here:
2525
///
26-
/// <https://docs.starknet.io/documentation/architecture_and_concepts/L1-L2_Communication/messaging-mechanism/>
26+
/// <https://docs.starknet.io/architecture-and-concepts/network-architecture/messaging-mechanism/#hashing_l1-l2>
27+
/// <https://github.com/starkware-libs/cairo-lang/blob/8276ac35830148a397e1143389f23253c8b80e93/src/starkware/starknet/solidity/StarknetMessaging.sol#L88>
2728
pub fn hash(&self) -> Hash256 {
2829
let mut hasher = Keccak256::new();
2930

@@ -60,7 +61,8 @@ impl MsgToL2 {
6061
impl MsgToL1 {
6162
/// Calculates the message hash based on the algorithm documented here:
6263
///
63-
/// <https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/messaging-mechanism/#structure_and_hashing_l2-l1>
64+
/// <https://docs.starknet.io/architecture-and-concepts/network-architecture/messaging-mechanism/#hashing_l2-l1>
65+
/// <https://github.com/starkware-libs/cairo-lang/blob/8276ac35830148a397e1143389f23253c8b80e93/src/starkware/starknet/solidity/StarknetMessaging.sol#L111>
6466
pub fn hash(&self) -> Hash256 {
6567
let mut hasher = Keccak256::new();
6668

0 commit comments

Comments
 (0)