Skip to content

Commit efe725e

Browse files
authored
Fix dead links (#5807)
## Description Paths have changed in Sway-Standards and Sway-Libs resulting in dead links. Required for any other PRs to have passing CI. ## Checklist - [ ] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [x] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [x] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [x] I have added tests that prove my fix is effective or that my feature works. - [x] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers.
1 parent 195acc6 commit efe725e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/book/src/blockchain-development/access_control.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ The `msg_sender` function works as follows:
2727

2828
## Contract Ownership
2929

30-
Many contracts require some form of ownership for access control. The [SRC-5 Ownership Standard](https://github.com/FuelLabs/sway-standards/tree/master/standards/src5-ownership) has been defined to provide an interoperable interface for ownership within contracts.
30+
Many contracts require some form of ownership for access control. The [SRC-5 Ownership Standard](https://github.com/FuelLabs/sway-standards/blob/master/SRCs/src-5.md) has been defined to provide an interoperable interface for ownership within contracts.
3131

32-
To accomplish this, use the [Ownership Library](https://github.com/FuelLabs/sway-libs/tree/master/libs/ownership) to keep track of the owner. This allows setting and revoking ownership using the variants `Some(..)` and `None` respectively. This is better, safer, and more readable than using the `Identity` type directly where revoking ownership has to be done using some magic value such as `std::constants::ZERO_B256` or otherwise.
32+
To accomplish this, use the [Ownership Library](https://github.com/FuelLabs/sway-libs/tree/master/libs/src/ownership) to keep track of the owner. This allows setting and revoking ownership using the variants `Some(..)` and `None` respectively. This is better, safer, and more readable than using the `Identity` type directly where revoking ownership has to be done using some magic value such as `std::constants::ZERO_B256` or otherwise.
3333

3434
- The following is an example of how to properly lock a function such that only the owner may call a function:
3535

docs/book/src/sway-program-types/libraries.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,14 @@ The repository [`sway-libs`](https://github.com/FuelLabs/sway-libs/) is a collec
190190

191191
Some Sway Libraries to try out:
192192

193-
- [Binary Merkle Proof](https://github.com/FuelLabs/sway-libs/tree/master/libs/merkle_proof)
194-
- [Signed Integers](https://github.com/FuelLabs/sway-libs/tree/master/libs/signed_integers)
195-
- [Unsigned Fixed Point Number](https://github.com/FuelLabs/sway-libs/tree/master/libs/fixed_point)
196-
- [Ownership](https://github.com/FuelLabs/sway-libs/tree/master/libs/ownership)
193+
- [Binary Merkle Proof](https://github.com/FuelLabs/sway-libs/tree/master/libs/src/merkle)
194+
- [Signed Integers](https://github.com/FuelLabs/sway-libs/tree/master/libs/src/signed_integers)
195+
- [Unsigned Fixed Point Number](https://github.com/FuelLabs/sway-libs/tree/master/libs/src/fixed_point)
196+
- [Ownership](https://github.com/FuelLabs/sway-libs/tree/master/libs/src/ownership)
197197

198198
### Example
199199

200-
You can import and use a Sway Library such as the [Ownership](https://github.com/FuelLabs/sway-libs/tree/master/libs/ownership) library just like any other external library.
200+
You can import and use a Sway Library such as the [Ownership](https://github.com/FuelLabs/sway-libs/tree/master/libs/src/ownership) library just like any other external library.
201201

202202
```sway
203203
use ownership::Ownership;

docs/reference/src/documentation/operations/reentrancy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To mitigate security concerns there are two approaches that are commonly used:
99

1010
## Re-entrancy Guard
1111

12-
Sway provides a stateless [re-entrancy](https://github.com/FuelLabs/sway-libs/blob/master/libs/reentrancy/src/lib.sw) guard, which reverts at run-time when re-entrancy is detected.
12+
Sway provides a stateless [re-entrancy](https://github.com/FuelLabs/sway-libs/tree/master/libs/src/reentrancy) guard, which reverts at run-time when re-entrancy is detected.
1313

1414
To use the guard we must import it.
1515

0 commit comments

Comments
 (0)