Skip to content

Commit b82e189

Browse files
Update README.md
1 parent 60abd7b commit b82e189

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

rust/guards/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ requests by contacting a ledger canister, where crucially double minting should
1515

1616
One tricky part in this scenario is that an item can therefore only be marked as processed after the asynchronous code
1717
has completed, meaning in the callback. As mentioned in
18-
the [security best-practices](https://internetcomputer.org/docs/building-apps/security/inter-canister-calls#inter-canister-calls-and-rollbacks),
18+
the [security best-practices](https://internetcomputer.org/docs/building-apps/security/inter-canister-calls#securely-handle-traps-in-callbacks),
1919
it's not always feasible to guarantee that the callback will not trap, which in that case would break the invariant due
2020
to the state being rolled back.
2121

@@ -37,11 +37,11 @@ until completion directly, everything will be executed in a single message.
3737

3838
### 3. Navigate into the project's directory.
3939

40-
### 4. Run `dfx start --background --clean && dfx deploy` to deploy the project to your local environment.
40+
### 4. Deploy the project to your local environment:
4141

42-
## Security considerations and best practices
43-
44-
If you base your application on this example, it is recommended that you familiarize yourself with and adhere to the [security best practices](https://internetcomputer.org/docs/building-apps/security/overview) for developing on ICP. This example may not implement all the best practices.
42+
```
43+
dfx start --background --clean && dfx deploy
44+
```
4545

4646
## Automated integration tests
4747

@@ -82,3 +82,7 @@ dfx canister call guards is_item_processed 'mint'
8282
```
8383

8484
This should return `(opt true)`.
85+
86+
## Security considerations and best practices
87+
88+
If you base your application on this example, it is recommended that you familiarize yourself with and adhere to the [security best practices](https://internetcomputer.org/docs/building-apps/security/overview) for developing on ICP. This example may not implement all the best practices.

0 commit comments

Comments
 (0)