You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix typos in test description of 'AmIRichAlready' tutorial
Corrected two typographical errors in the ## Testing section of the 'AmIRichAlready' contract tutorial:
1. Changed 'to the the AmIRichAlready' to 'for the AmIRichAlready' to clarify the sentence.
2. Fixed 'brake' to 'break' in 'Let's break down this test into parts' for proper grammar.
Let's write the first test to the the `AmIRichAlready` contract. What do you think our test should be about? Yeah, you're right! We should check if we are already rich :)
196
+
Let's write the first test for the `AmIRichAlready` contract. What do you think our test should be about? Yeah, you're right! We should check if we are already rich :)
197
197
198
198
But wait a second. How will our mocked contract know what values to return? We haven't implemented any logic for the `balanceOf()` function. Again, Waffle can help here. Our mocked contract has some new fancy stuff to it now:
199
199
@@ -211,7 +211,7 @@ it("returns false if the wallet has less than 1000000 tokens", async () => {
211
211
})
212
212
```
213
213
214
-
Let's brake down this test into parts:
214
+
Let's break down this test into parts:
215
215
216
216
1. We set our mock ERC20 contract to always return balance of 999999 tokens.
217
217
2. Check if the `contract.check()` method returns `false`.
0 commit comments