You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jrosendo 7a960f7d00 docs(blockchain): add blockchain branch subjects to public 2 years ago
..
README.md docs(blockchain): add blockchain branch subjects to public 2 years ago

README.md

Named Festival

In this exercise you will create your first smart contract! For a beginner friendly environment, I recommend remix. It is an online IDE that provides many useful functionalities.

If you want a more complete local dev environment, you can have a look at hardhat.

Instructions

  • First, you need to specify the licence and the solidity version you will be using. If you have not thought about it, you can use UNLICENSED.
// SPDX-License-Identifier: UNLICENSED
  • Pragma specifies the version of solidity you will use. The tests are designed to work with version 0.8.4 of solidity.
pragma solidity ^0.8.4;
  • Then create a Smart Contract named NamedFestival.
  • Create a public function setName() that takes a string as parameter and sets the name of the festival
  • Finally a function getName() takes no parameters and retrieves the name

Expected Functions

contract NamedFestival {
    //...
}

function setName(string memory input) public {
    //...
}

function getName() public view returns (string memory) {
    //...
}

Notions