Skip to content

Blockchain solidity tutorials #54

Answered by alwayscommit
Paakwesi21 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Here's the solidity file for that example
https://github.com/PatrickAlphaC/simple-storage-fcc/blob/main/SimpleStorage.sol

Could you copy-paste the exact lines that you find difficult to understand?

There are two data structure implementations in this solidity example

  1. Array - it is an indexed data structure that you can look up using indices starting from 0 up to the nth element. If you try to access an index that doesn't have a People object, it will result in an error. Here you create Objects of People structure (you could think of this as a Class in terms of traditional programming concepts) and this People object has two attributes, name and number. The array simply stores Peo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PatrickAlphaC
Comment options

Answer selected by PatrickAlphaC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants