Skip to content

Smart Contract Example

We have to start with something, so we're going to use the exact same Smart Contract as we used in our previous Lab.

Simple Smart Contract

If you still have Remix open from the previous Lab, then you can keep re-using that smart contract, otherwise create a new file and paste the following content:

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.1;

contract MyContract {
    string public myString = 'hello world';
}

Alright, let's deploy to Görli via MetaMask.

Try yourself!

Before you go to the next Lesson, try yourself to deploy to Görli via MetaMask.