Skip to content

Commit 3b61c55

Browse files
committed
fix: ast; bump h1s to h2
Fixed "Link component missing href prop" warning
1 parent fb6a7ce commit 3b61c55

File tree

3 files changed

+6
-6
lines changed
  • public/content/developers
    • docs/design-and-ux/dex-design-best-practice
    • tutorials

3 files changed

+6
-6
lines changed

public/content/developers/docs/design-and-ux/dex-design-best-practice/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ The law of proximity states that items that are close together are perceived as
177177

178178
Ultimately, there are pluses and minuses for both options, but it is interesting how the trend appears to be towards token on the right.
179179

180-
# Button behavior {#button-behavior}
180+
## Button behavior {#button-behavior}
181181

182182
Don’t have a separate button for Approve. Also don’t have a separate click for Approve. The user wants to Swap, so just say “swap” on the button and initiate the approval as the first step. A modal can show progress with a stepper, or a simple “tx 1 of 2 - approving” notification.
183183

184184
![A UI with separate buttons for approve and swap](./14.png)
185185

186186
![A UI with one button that says approve](./15.png)
187187

188-
## Button as contextual help {#button-as-contextual-help}
188+
### Button as contextual help {#button-as-contextual-help}
189189

190190
The button can do double duty as an alert!
191191

public/content/developers/tutorials/erc-721-vyper-annotated-code/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ Anybody who is allowed to transfer a token is allowed to burn it. While a burn a
689689
transfer to the zero address, the zero address does not actually receives the token. This allows us to
690690
free up all the storage that was used for the token, which can reduce the gas cost of the transaction.
691691

692-
# Using this Contract {#using-contract}
692+
## Using this Contract {#using-contract}
693693

694694
In contrast to Solidity, Vyper does not have inheritance. This is a deliberate design choice to make the
695695
code clearer and therefore easier to secure. So to create your own Vyper ERC-721 contract you take [this

public/content/developers/tutorials/waffle-test-simple-smart-contract/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ published: 2021-02-26
2121
- You have used some package managers like yarn or npm
2222
- You possess very basic knowledge of smart contracts and Solidity
2323

24-
# Getting started {#getting-started}
24+
## Getting started {#getting-started}
2525

2626
The tutorial demonstrates test setup and run using yarn, but there is no problem if you prefer npm - I will provide proper references to the official Waffle [documentation](https://ethereum-waffle.readthedocs.io/en/latest/index.html).
2727

@@ -100,7 +100,7 @@ Testing with Waffle requires using Chai matchers and Mocha, so you need to [add]
100100

101101
If you want to [execute](https://ethereum-waffle.readthedocs.io/en/latest/getting-started.html#running-tests) your tests, just run `yarn test` .
102102

103-
# Testing {#testing}
103+
## Testing {#testing}
104104

105105
Now create the `test` directory and create the new file `test\EtherSplitter.test.ts`.
106106
Copy the snippet below and paste it to our test file.
@@ -194,7 +194,7 @@ it("Reverts when Vei amount uneven", async () => {
194194

195195
The test, if passed, will assure us that the transaction was reverted indeed. However, there must be also an exact match between the messages that we passed in `require` statement and the message we expect in `revertedWith`. If we go back to the code of EtherSplitter contract, in the `require` statement for the wei amount, we provide the message: 'Uneven wei amount not allowed'. This matches the message we expect in our test. If they were not equal, the test would fail.
196196

197-
# Congratulations! {#congratulations}
197+
## Congratulations! {#congratulations}
198198

199199
You've made your first big step towards testing smart contracts with Waffle! You might be interested in other Waffle tutorials:
200200

0 commit comments

Comments
 (0)