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.
Last updated on