Skip to content

Commit ce5cb88

Browse files
youyyytrokcptartur
andauthored
fix outdated doc links (#2911)
Hey! Fixed broken links in the code that were pointing to outdated Starknet documentation pages. Now all references lead to the correct sections. ### What’s changed: - Updated links in: - `mod.rs` - `storage.rs` - `gas.rs` Everything should now resolve properly. ## Checklist <!-- Make sure all of these are complete --> - [ ] Linked relevant issue - [x] Updated relevant documentation - [ ] Added relevant tests - [ ] Performed self-review of the code - [ ] Added changes to `CHANGELOG.md` --------- Co-authored-by: Artur Michałek <[email protected]>
1 parent 13514e7 commit ce5cb88

File tree

3 files changed

+3
-3
lines changed
  • crates
    • cheatnet/src/runtime_extensions
      • call_to_blockifier_runtime_extension
      • forge_runtime_extension/cheatcodes
    • forge/tests/integration

3 files changed

+3
-3
lines changed

crates/cheatnet/src/runtime_extensions/call_to_blockifier_runtime_extension/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl<'a> ExtensionLogic for CallToBlockifierExtension<'a> {
5757
// This is redirected to drop ForgeRuntimeExtension
5858
// and to enable handling call errors with safe dispatchers in the test code
5959
// since call errors cannot be handled on real starknet
60-
// https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/system-calls-cairo1/#call_contract
60+
// https://docs.starknet.io/architecture-and-concepts/smart-contracts/system-calls-cairo1/#call_contract
6161
DeprecatedSyscallSelector::CallContract => {
6262
execute_syscall::<CallContractRequest>(vm, extended_runtime)?;
6363

crates/cheatnet/src/runtime_extensions/forge_runtime_extension/cheatcodes/storage.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub fn load(
4848

4949
/// The address after hashing with pedersen, needs to be taken with a specific modulo value (2^251 - 256)
5050
/// For details see:
51-
/// <https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/contract-storage>
51+
/// <https://docs.starknet.io/architecture-and-concepts/smart-contracts/contract-storage>
5252
#[must_use]
5353
fn normalize_storage_address(address: Felt) -> Felt {
5454
let modulus = NonZeroFelt::from_felt_unchecked(Felt::from(2).pow(251_u128) - Felt::from(256));

crates/forge/tests/integration/gas.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use test_utils::running_tests::run_test_case;
55
use test_utils::test_case;
66

77
// all calculations are based on formula from
8-
// https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/fee-mechanism/#overall_fee
8+
// https://docs.starknet.io/architecture-and-concepts/network-architecture/fee-mechanism/#overall_fee
99

1010
#[test]
1111
fn declare_cost_is_omitted() {

0 commit comments

Comments
 (0)