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
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ We'll writing all of our smart contracts in Solidity and writing the rest of our
37
37
38
38
## The Task
39
39
We're going to be deploying an ERC20 contract (written in Solidity) to Optimistic Ethereum.
40
-
We've already gone ahead and written that contract for you, which you should be able to locate in [`optimism-tutorial/contracts/ERC20.sol`](https://github.com/ethereum-optimism/optimism-tutorial/blob/master/contracts/ERC20.sol).
40
+
We've already gone ahead and written that contract for you, which you should be able to locate in [`optimism-tutorial/contracts/ERC20.sol`](https://github.com/ethereum-optimism/optimism-tutorial/blob/main/contracts/ERC20.sol).
41
41
This contract is just a relatively standard (though completely unsafe) ERC20 implementation.
42
42
43
43
(**Note**: Seriously! This implementation is unsafe! Don't use it in production!)
@@ -49,10 +49,10 @@ yarn compile
49
49
```
50
50
51
51
## The Tests
52
-
We've also written some very basic tests for you, which you can locate in [`optimism-tutorial/test/erc20.spec.ts`](https://github.com/ethereum-optimism/optimism-tutorial/blob/master/test/erc20.spec.ts).
52
+
We've also written some very basic tests for you, which you can locate in [`optimism-tutorial/test/erc20.spec.ts`](https://github.com/ethereum-optimism/optimism-tutorial/blob/main/test/erc20.spec.ts).
53
53
Though tests are pretty straight forward, we'd recommend taking a quick read through the test file.
54
54
We're using [Ethers](https://docs.ethers.io/v5/) for the majority of our testing and [Waffle](https://ethereum-waffle.readthedocs.io/en/latest/) for some of its utilities.
55
-
Hardhat provides convenient plugins for both; we've already added these plugins to [`optimism-tutorial/hardhat.config.ts`](https://github.com/ethereum-optimism/optimism-tutorial/blob/master/hardhat.config.ts).
55
+
Hardhat provides convenient plugins for both; we've already added these plugins to [`optimism-tutorial/hardhat.config.ts`](https://github.com/ethereum-optimism/optimism-tutorial/blob/main/hardhat.config.ts).
56
56
57
57
Once you've taken a look at the tests, feel free to verify that everything is working correctly by running the following command:
58
58
@@ -74,7 +74,7 @@ First, add the Optimism plugins package to your project:
74
74
yarn add @eth-optimism/plugins
75
75
```
76
76
77
-
Next, add the following line to [`optimism-tutorial/hardhat.config.ts`](https://github.com/ethereum-optimism/optimism-tutorial/blob/master/hardhat.config.ts):
77
+
Next, add the following line to [`optimism-tutorial/hardhat.config.ts`](https://github.com/ethereum-optimism/optimism-tutorial/blob/main/hardhat.config.ts):
78
78
79
79
```ts
80
80
// hardhat.config.ts
@@ -101,11 +101,11 @@ Now it's time to test this ERC20 again.
101
101
This time, however, we'll be testing our new OVM-compatible smart contract on top of Optimistic Ethereum.
102
102
Luckily, this is almost as easy as compiling the contract!
103
103
104
-
First, make a copy of [`optimism-tutorial/test/erc20.spec.ts`](https://github.com/ethereum-optimism/optimism-tutorial/blob/master/test/erc20.spec.ts).
104
+
First, make a copy of [`optimism-tutorial/test/erc20.spec.ts`](https://github.com/ethereum-optimism/optimism-tutorial/blob/main/test/erc20.spec.ts).
105
105
You can name the copy whatever you'd like, perhaps `optimistic-erc20.spec.ts`.
106
106
We'll modify this copy in just a minute.
107
107
108
-
Now we're going to add another Hardhat plugin to [`optimism-tutorial/hardhat.config.ts`](https://github.com/ethereum-optimism/optimism-tutorial/blob/master/hardhat.config.ts):
108
+
Now we're going to add another Hardhat plugin to [`optimism-tutorial/hardhat.config.ts`](https://github.com/ethereum-optimism/optimism-tutorial/blob/main/hardhat.config.ts):
0 commit comments