Skip to content
Open
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
27 changes: 14 additions & 13 deletions Guides/Your_First_Smart_Contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,24 @@ For simplicity, we will be using [Remix](https://docs.mode.network/build-on-mode

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

// SPDX-License-Identifier: GPL-3.0
```solidity
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.8.2 <0.9.0;
pragma solidity >=0.8.2 <0.9.0;

contract Storage {
contract Storage {

uint256 number;

function store(uint256 num) public {
number = num;
}
uint256 number;

function retrieve() public view returns (uint256){
return number;
}
}

function store(uint256 num) public {
number = num;
}

function retrieve() public view returns (uint256) {
return number;
}
}
```

> 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).

Expand Down