Skip to content

Commit f0346a4

Browse files
authored
Merge pull request #9258 from MrJithil/clipboard-readme-file-issues-fix
Clipboard readme file issues fix
2 parents 3c7e06c + 6f60e9c commit f0346a4

File tree

42 files changed

+106
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+106
-108
lines changed

src/content/developers/docs/standards/tokens/erc-20/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ see below we will use a simplified ABI, to make it a low friction example.
8282
First, make sure you have installed [Web3.py](https://web3py.readthedocs.io/en/stable/quickstart.html#installation) Python library:
8383

8484
```
85-
$ pip install web3
85+
pip install web3
8686
```
8787

8888
```python

src/content/developers/docs/standards/tokens/erc-721/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ see below we will use a simplified ABI, to make it a low friction example.
7777
First, make sure you have installed [Web3.py](https://web3py.readthedocs.io/en/stable/quickstart.html#installation) Python library:
7878

7979
```
80-
$ pip install web3
80+
pip install web3
8181
```
8282

8383
```python

src/content/developers/tutorials/a-developers-guide-to-ethereum-part-one/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,19 @@ In this walkthrough, we’ll just be working within a Python interpreter. We won
8383
First, install [IPython](https://ipython.org/) for a user-friendly environment to explore in. IPython offers tab completion, among other features, making it much easier to see what’s possible within Web3.py.
8484

8585
```bash
86-
$ pip install ipython
86+
pip install ipython
8787
```
8888

8989
Web3.py is published under the name `web3`. Install it like so:
9090

9191
```bash
92-
$ pip install web3
92+
pip install web3
9393
```
9494

9595
One more thing – we're going to simulate a blockchain later, which requires a couple more dependencies. You can install those via:
9696

9797
```bash
98-
$ pip install 'web3[tester]'
98+
pip install 'web3[tester]'
9999
```
100100

101101
You’re all set up to go!
@@ -105,7 +105,7 @@ You’re all set up to go!
105105
Open up a new Python environment by running `ipython` in your terminal. This is comparable to running `python`, but comes with more bells and whistles.
106106

107107
```bash
108-
$ ipython
108+
ipython
109109
```
110110

111111
This will print out some information about the versions of Python and IPython you’re running, then you should see a prompt waiting for input:

src/content/developers/tutorials/how-to-use-echidna-to-test-smart-contracts/index.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ We do not need any particular initialization in our current example, as a result
133133
Echidna is launched with:
134134

135135
```bash
136-
$ echidna-test contract.sol
136+
echidna-test contract.sol
137137
```
138138

139139
If contract.sol contains multiple contracts, you can specify the target:
140140

141141
```bash
142-
$ echidna-test contract.sol --contract MyContract
142+
echidna-test contract.sol --contract MyContract
143143
```
144144

145145
### Summary: Testing a property {#summary-testing-a-property}
@@ -156,7 +156,7 @@ contract TestToken is Token{
156156
```
157157

158158
```bash
159-
$ echidna-test testtoken.sol --contract TestToken
159+
echidna-test testtoken.sol --contract TestToken
160160
...
161161

162162
echidna_balance_under_1000: failed!💥
@@ -228,7 +228,7 @@ This is hard for a fuzzer (it is recommended to use a symbolic execution tool li
228228
We can run Echidna to verify this:
229229

230230
```bash
231-
$ echidna-test multi.sol
231+
echidna-test multi.sol
232232
...
233233
echidna_state4: passed! 🎉
234234
Seed: -3684648582249875403
@@ -262,7 +262,7 @@ filterFunctions: ["f", "g", "h", "i"]
262262
To run Echidna with a configuration file `blacklist.yaml`:
263263

264264
```bash
265-
$ echidna-test multi.sol --config blacklist.yaml
265+
echidna-test multi.sol --config blacklist.yaml
266266
...
267267
echidna_state4: failed!💥
268268
Call sequence:
@@ -284,7 +284,7 @@ filterFunctions: ["f1", "f2", "f3"]
284284
```
285285

286286
```bash
287-
$ echidna-test contract.sol --config config.yaml
287+
echidna-test contract.sol --config config.yaml
288288
...
289289
```
290290

@@ -337,7 +337,7 @@ checkAsserts: true
337337
When we run this contract in Echidna, we obtain the expected results:
338338

339339
```bash
340-
$ echidna-test assert.sol --config config.yaml
340+
echidna-test assert.sol --config config.yaml
341341
Analyzing contract: assert.sol:Incrementor
342342
assertion in inc: failed!💥
343343
Call sequence, shrinking (2596/5000):
@@ -404,7 +404,7 @@ contract Incrementor {
404404
```
405405

406406
```bash
407-
$ echidna-test assert.sol --config config.yaml
407+
echidna-test assert.sol --config config.yaml
408408
Analyzing contract: assert.sol:Incrementor
409409
assertion in inc: failed!💥
410410
Call sequence, shrinking (2596/5000):
@@ -444,7 +444,7 @@ This small example forces Echidna to find certain values to change a state varia
444444
We can run Echidna to verify this:
445445

446446
```bash
447-
$ echidna-test magic.sol
447+
echidna-test magic.sol
448448
...
449449
450450
echidna_magic_values: passed! 🎉
@@ -459,7 +459,7 @@ However, we can still use Echidna to collect corpus when running this fuzzing ca
459459
To enable the corpus collection, create a corpus directory:
460460

461461
```bash
462-
$ mkdir corpus-magic
462+
mkdir corpus-magic
463463
```
464464

465465
And an [Echidna configuration file](https://github.com/crytic/echidna/wiki/Config) `config.yaml`:
@@ -472,7 +472,7 @@ corpusDir: "corpus-magic"
472472
Now we can run our tool and check the collected corpus:
473473

474474
```bash
475-
$ echidna-test magic.sol --config config.yaml
475+
echidna-test magic.sol --config config.yaml
476476
```
477477

478478
Echidna still cannot find the correct magic values, but we can take look to the corpus it collected.
@@ -529,13 +529,13 @@ Echidna needs some help in order to deal with the `magic` function. We are going
529529
parameters for it:
530530

531531
```bash
532-
$ cp corpus/2712688662897926208.txt corpus/new.txt
532+
cp corpus/2712688662897926208.txt corpus/new.txt
533533
```
534534

535535
We will modify `new.txt` to call `magic(42,129,333,0)`. Now, we can re-run Echidna:
536536

537537
```bash
538-
$ echidna-test magic.sol --config config.yaml
538+
echidna-test magic.sol --config config.yaml
539539
...
540540
echidna_magic_values: failed!💥
541541
Call sequence:
@@ -583,7 +583,7 @@ Currently, Echidna always need a property to test: here `echidna_test` always re
583583
We can run Echidna to verify this:
584584

585585
```
586-
$ echidna-test gas.sol
586+
echidna-test gas.sol
587587
...
588588
echidna_test: passed! 🎉
589589
@@ -610,7 +610,7 @@ estimateGas: true
610610
Once we have the configuration file created, we can run Echidna like this:
611611

612612
```bash
613-
$ echidna-test gas.sol --config config.yaml
613+
echidna-test gas.sol --config config.yaml
614614
...
615615
echidna_test: passed! 🎉
616616
@@ -660,7 +660,7 @@ contract C {
660660
If Echidna can call all the functions, it won't easily find transactions with high gas cost:
661661

662662
```
663-
$ echidna-test pushpop.sol --config config.yaml
663+
echidna-test pushpop.sol --config config.yaml
664664
...
665665
pop used a maximum of 10746 gas
666666
...
@@ -680,7 +680,7 @@ filterFunctions: ["pop", "clear"]
680680
```
681681

682682
```
683-
$ echidna-test pushpop.sol --config config.yaml
683+
echidna-test pushpop.sol --config config.yaml
684684
...
685685
push used a maximum of 40839 gas
686686
...
@@ -696,7 +696,7 @@ estimateGas: true
696696
```
697697

698698
```bash
699-
$ echidna-test contract.sol --config config.yaml
699+
echidna-test contract.sol --config config.yaml
700700
...
701701
```
702702

src/content/developers/tutorials/solidity-and-truffle-continuous-integration-setup/index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ The eth-gas-reporter plugin is quite useful for keeping track of the gas costs o
9999
### Step 1: Install the eth-gas-reporter plugin and codechecks {#step-1-install-the-eth-gas-reporter-plugin-and-codechecks}
100100

101101
```bash
102-
$ npm install --save-dev eth-gas-reporter
103-
$ npm install --save-dev @codechecks/client
102+
npm install --save-dev eth-gas-reporter
103+
npm install --save-dev @codechecks/client
104104
```
105105

106106
### Step 2: Add the plugin to the mocha settings inside your truffle-config.js {#step-2-add-the-plugin-to-the-mocha-settings-inside-your-truffle-configjs}
@@ -151,9 +151,7 @@ With the solidity-coverage plugin you can check how much of your code paths are
151151
### Step 1: Create a metacoin project and install coverage tools {#step-1-create-a-metacoin-project-and-install-coverage-tools}
152152

153153
```bash
154-
$ npm install --save-dev truffle
155-
$ npm install --save-dev coveralls
156-
$ npm install --save-dev solidity-coverage
154+
npm install --save-dev truffle coveralls solidity-coverage
157155
```
158156

159157
### Step 2: Add solidity-coverage to the plugins array in truffle-config.js {#step-2-add-solidity-coverage-to-the-plugins-array-in-truffle-configjs}

src/content/developers/tutorials/using-websockets/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The easiest way to test out WebSockets is to install a command line tool for mak
2727
_Note: if you have an Alchemy account you can replace `demo` with your own API key. [Sign up for a free Alchemy account here!](https://auth.alchemyapi.io/signup)_
2828

2929
```
30-
$ wscat -c wss://eth-mainnet.ws.alchemyapi.io/ws/demo
30+
wscat -c wss://eth-mainnet.ws.alchemyapi.io/ws/demo
3131
3232
> {"jsonrpc": "2.0", "id": 0, "method": "eth_gasPrice"}
3333

src/content/developers/tutorials/waffle-dynamic-mocking-and-testing-calls/index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,29 @@ Why is dynamic mocking useful? Well, it allows us to write unit tests instead of
3030
Before we start we need to prepare a simple node.js project:
3131

3232
```bash
33-
$ mkdir dynamic-mocking
34-
$ cd dynamic-mocking
35-
$ mkdir contracts src
33+
mkdir dynamic-mocking
34+
cd dynamic-mocking
35+
mkdir contracts src
3636

37-
$ yarn init
37+
yarn init
3838
# or if you're using npm
39-
$ npm init
39+
npm init
4040
```
4141

4242
Let's start with adding typescript and test dependencies - mocha & chai:
4343

4444
```bash
45-
$ yarn add --dev @types/chai @types/mocha chai mocha ts-node typescript
45+
yarn add --dev @types/chai @types/mocha chai mocha ts-node typescript
4646
# or if you're using npm
47-
$ npm install @types/chai @types/mocha chai mocha ts-node typescript --save-dev
47+
npm install @types/chai @types/mocha chai mocha ts-node typescript --save-dev
4848
```
4949

5050
Now let's add `Waffle` and `ethers`:
5151

5252
```bash
53-
$ yarn add --dev ethereum-waffle ethers
53+
yarn add --dev ethereum-waffle ethers
5454
# or if you're using npm
55-
$ npm install ethereum-waffle ethers --save-dev
55+
npm install ethereum-waffle ethers --save-dev
5656
```
5757

5858
Your project structure should look like this now:
@@ -108,7 +108,7 @@ It's time to build this contract! For that we will use `Waffle`. First, we're go
108108
Now we're ready to build the contract with Waffle:
109109

110110
```bash
111-
$ npx waffle
111+
npx waffle
112112
```
113113

114114
Easy, right? In `build/` folder two files corresponding to the contract and the interface appeared. We will use them later for testing.

src/content/translations/de/developers/docs/standards/tokens/erc-20/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Sehen wir uns an, wie wichtig ein Standard ist, um uns die Überprüfung jedes E
7575
Stellen Sie zuerst sicher, dass Sie [Web3.py](https://web3py.readthedocs.io/en/stable/quickstart.html#installation) Python-Bibliothek installiert haben:
7676

7777
```
78-
$ pip install web3
78+
pip install web3
7979
```
8080

8181
```python

src/content/translations/de/developers/docs/standards/tokens/erc-721/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Lassen Sie uns sehen, wie wichtig ein Standard ist, um es uns einfach zu machen,
6363
Stellen Sie zuerst sicher, dass Sie [Web3.py](https://web3py.readthedocs.io/en/stable/quickstart.html#installation) Python-Bibliothek installiert haben:
6464

6565
```
66-
$ pip install web3
66+
pip install web3
6767
```
6868

6969
```python

src/content/translations/es/developers/docs/standards/tokens/erc-20/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Vamos a ver cómo un estándar es tan importante para que las cosas sean sencill
7575
Primero asegúrate de haber instalado [Web3.py](https://web3py.readthedocs.io/en/stable/quickstart.html#installation) Python library:
7676

7777
```
78-
$ pip install web3
78+
pip install web3
7979
```
8080

8181
```python

0 commit comments

Comments
 (0)