Skip to content

zircon-tech/smart-contract-using-remix-vanessa-oviedo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Unit 3: Ethereum | Remix IDE -English Version- 🚀

What's this project about?

This Smart Contract contains a simple approach to read/write functions.

Main Goal: This smart contract will allow you to store an array of Person and their favorite number. Also, to recover and search for a specific favorite number.

Write Functions:

  • Store: Receives as parameter the person's name and his/her favorite number. Parameters: tuple(string,uint256

image

Read Functions:

  • Retrieve: Each of the person you have entered in the Store method are saved in an array. With this method, you can enter the position of the person you need to recover. For instance, if you enter 0, you will recover the first person you entered. Then, 1 is going to be the second and so on. Return Type: tuple(string,uint256)

image

  • SearchFavoriteNumberPerPerson: You can enter the person name you need to recover his/her favorite number. Parameters: name of the person (string). Return Type: tuple(string,uint256)

image

Test Network: I used a connection to my Metamask provider. The network selected was Ropsten.

Contract was deployed at : https://ropsten.etherscan.io/address/0x4e1b0353157700252f95b5c20d990f4a3ba71760#readContract . I have decompiled the deployed contract so you can see the full code and interact with it.

image

About

smart-contract-using-remix-vanessa-oviedo created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published