Skip to content

Commit 2021c73

Browse files
committed
chore: cleanup markdown
1 parent b22c032 commit 2021c73

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

Guides/Your_First_Smart_Contract.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,23 +93,24 @@ For simplicity, we will be using [Remix](https://docs.mode.network/build-on-mode
9393

9494
Here is sample code that comes as default on Remix, you can paste this in any `.sol` file:
9595

96-
// SPDX-License-Identifier: GPL-3.0
96+
```solidity
97+
// SPDX-License-Identifier: GPL-3.0
9798
98-
pragma solidity >=0.8.2 <0.9.0;
99+
pragma solidity >=0.8.2 <0.9.0;
99100
100-
contract Storage {
101+
contract Storage {
101102
102-
uint256 number;
103-
104-
function store(uint256 num) public {
105-
number = num;
106-
}
103+
uint256 number;
107104
108-
function retrieve() public view returns (uint256){
109-
return number;
110-
}
111-
}
112-
105+
function store(uint256 num) public {
106+
number = num;
107+
}
108+
109+
function retrieve() public view returns (uint256) {
110+
return number;
111+
}
112+
}
113+
```
113114

114115
> Make sure to open the advanced configurations and set the EVM version to London. This is to avoid an issue with the PUSH0 opcode. You can read more on the issue with all the Optimism chains [here](https://community.optimism.io/docs/developers/build/differences/#opcode-differences).
115116

0 commit comments

Comments
 (0)