Categories
Blockchain and Web 3.0 Entrepreneurship General

Write First Smart Contract in Solidity | Blockchain

Hence, define the function store (which stores someone’s favourite number), passing a variable to store a number input from the user. Assign the favourite number variable created above (with public scope) to the local variable passed in the function.