Skip to content

Commit b3263aa

Browse files
authored
Merge pull request #242 from crytic/manticore-spelling-formatting
fix spelling and formatting
2 parents c7f4f09 + fc2a7d8 commit b3263aa

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Example: Arithmetic overflow
22
This scenario is given as an example. You can follow its structure to solve the exercises.
33

4-
[`my_token.py`](example/my_token.py) uses manticore to find for an attacker to generate tokens during a transfer on Token ([my_token.sol](example/my_token.sol)).
4+
[`my_token.py`](example/my_token.py) uses Manticore to find for an attacker to generate tokens during a transfer on Token ([my_token.sol](example/my_token.sol)).
55

6-
## Proposed scenario
6+
## Proposed scenario
77

8-
We use the pattern initilization, exploration and property for our scripts.
8+
We use the pattern initialization, exploration and property for our scripts.
99

10-
### Initialization
10+
## Initialization
1111

1212
- Create one user account
1313
- Create the contract account
1414

15-
### Exploration
15+
## Exploration
1616

1717
- Call balances on the user account
1818
- Call transfer with symbolic destination and value
1919
- Call balances on the user account
2020

21-
### Property
21+
## Property
2222

2323
- Check if the user can have more token after the transfer than before.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11

2-
# Exercice 1 : Arithmetic
2+
# Exercise 1 : Arithmetic rounding
33

44
Use Manticore to find an input allowing an attacker to generate free tokens in [exercise1/token.sol](./exercise1/token.sol).
55
Propose a fix of the contract, and test your fix using your Manticore script.
66

77
## Proposed scenario
88

9-
Follow the pattern initilization, exploration and property for the script.
9+
Follow the pattern initialization, exploration and property for the script.
1010

11-
### Initialization
11+
## Initialization
1212

1313
- Create one account
1414
- Create the contract account
1515

16-
### Exploration
16+
## Exploration
1717

1818
- Call `is_valid_buy` with two symbolic values for tokens_amount and wei_amount
1919

20-
### Property
20+
## Property
2121

2222
- An attack is found if on a state alive `wei_amount == 0 and tokens_amount >= 1`
2323

24-
### Hints
24+
## Hints
2525

2626
- `m.ready_states` returns the list of state alive
2727
- `Operators.AND(a, b)` allows to create and AND condition
2828
- You can use the template proposed in [exercise1/template.py](./exercise1/template.py)
2929

30-
### Solution
30+
## Solution
3131

3232
[exercise1/solution.py](./exercise1/solution.py)

program-analysis/manticore/exercises/exercise2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Exercice 2 : Arithmetic on multi transactions
1+
# Exercise 2 : Arithmetic overflow through multiple transactions
22

33
Use Manticore to find if an overflow is possible in Overflow.add. Propose a fix of the contract, and test your fix using your Manticore script.
44

55
## Proposed scenario
66

7-
Follow the pattern initilization, exploration and property for the script.
7+
Follow the pattern initialization, exploration and property for the script.
88

9-
### Initialization
9+
## Initialization
1010

1111
- Create one user account
1212
- Create the contract account
@@ -20,7 +20,7 @@ Follow the pattern initilization, exploration and property for the script.
2020

2121
- Check if it is possible for the value returned by sellerBalance() to be lower than the first input.
2222

23-
## Hints:
23+
## Hints
2424

2525
- The value returned by the last transaction can be accessed through:
2626

@@ -36,6 +36,6 @@ data = ABI.deserialize("uint", data)
3636

3737
- You can use the template proposed in [exercise2/template.py](./exercise2/template.py)
3838

39-
### Solution
39+
## Solution
4040

4141
[exercise2/solution.py](./exercise2/solution.py).

0 commit comments

Comments
 (0)