Skip to content

Commit f88d490

Browse files
authored
Merge pull request #359 from crytic/fix-hevm-links
Fixes for hevm-related broken urls
2 parents 40216de + f14d548 commit f88d490

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

program-analysis/echidna/advanced/hevm-cheats-to-test-permit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
This method presents a new way of allocating allowances, as signatures can be computed off-chain and passed to a contract. It allows a relayer to pay the entire gas fee of the permit transaction in exchange for a fee, enabling completely gasless transactions for a user. Furthermore, this removes the typical `approve() -> transferFrom()` pattern that forces users to send two transactions instead of just one through this new method.
1010

11-
Note that for the permit function to work, a valid signature is needed. This example will demonstrate how we can use [`hevm`'s `sign` cheatcode](https://github.com/dapphub/dapptools/blob/master/src/hevm/README.md#cheat-codes) to sign data with a private key. More generally, you can use this cheatcode to test anything that requires valid signatures.
11+
Note that for the permit function to work, a valid signature is needed. This example will demonstrate how we can use [`hevm`'s `sign` cheatcode](https://hevm.dev/ds-test-tutorial.html#supported-cheat-codes) to sign data with a private key. More generally, you can use this cheatcode to test anything that requires valid signatures.
1212

1313
## Example
1414

program-analysis/echidna/advanced/on-using-cheat-codes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- [How and when to use cheat codes](#how-and-when-to-use-cheat-codes)
66
- [Introduction](#introduction)
77
- [Cheat codes available in Echidna](#cheat-codes-available-in-echidna)
8-
- [Advice on the use of cheat codes](#advice-on-the-use-of-cheat-codes)
8+
- [Risks of cheat codes](#risks-of-cheat-codes)
99

1010
## Introduction
1111

@@ -14,7 +14,7 @@ Cheat codes are special functions that allow to change the state of the EVM in w
1414

1515
## Cheat codes available in Echidna
1616

17-
Echidna supports all cheat codes that are available in [hevm](https://github.com/ethereum/hevm). These are documented here: https://hevm.dev/controlling-the-unit-testing-environment.html#cheat-codes.
17+
Echidna supports all cheat codes that are available in [hevm](https://github.com/ethereum/hevm). These are documented here: [https://hevm.dev/controlling-the-unit-testing-environment.html#cheat-codes](https://hevm.dev/ds-test-tutorial.html#supported-cheat-codes).
1818
If a new cheat code is added in the future, Echidna only needs to update the hevm version and everything should work out of the box.
1919

2020
As an example, the `prank` cheat code is able to set the `msg.sender` address in the context of the next external call:

0 commit comments

Comments
 (0)