Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ If you don't want to give a license, you can put `UNLICENSED`. Common open sourc
Below the license identifier, you need to specify which [version] of Solidity the compiler should use to compile your code. If by the time you read this, the version has advanced, you should try to use the most current version. Doing so may cause you to run into unexpected errors, but it's great practice for working in real-world conditions!

```Solidity
pragma solidity 0.8.17;
pragma solidity 0.8.20;
```

Finally, add a `contract` called `HelloWorld`. You should end up with:

```Solidity
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;
pragma solidity 0.8.20;

contract HelloWorld {

Expand Down Expand Up @@ -168,7 +168,7 @@ Deploy and test your contract. You should get a _decoded output_ with:
```solidity
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;
pragma solidity 0.8.20;

contract HelloWorld {

Expand Down
2 changes: 1 addition & 1 deletion docs/learn/hardhat/hardhat-forking/hardhat-forking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Those won't be covered in this guide, however it's recommended to explore them a
The BalanceReader contract is created as follows:

```tsx
pragma solidity 0.8.9;
pragma solidity 0.8.20;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion docs/learn/mappings/mappings-sbs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ You should end up with a contract similar to this:
<Accordion title="Reveal code">

```solidity
pragma solidity 0.8.17;
pragma solidity 0.8.20;

contract Mappings {
mapping (address => uint) public favoriteNumbers;
Expand Down