Is anyone able to explain to me this function and how it works?

2021.12.05 09:11 Middey14 Is anyone able to explain to me this function and how it works?

Im am new to coding solidity and so am watching a long video to learn it, this is the code that is being written out :
function sfGet(uint _simpleStorageIndex) public view returns (uint256) { function and returning uint256 data types SimpleStorage simpleStorage = SimpleStorage(address(simpleStorageArray[_simpleStorageIndex])) return simpleStorage.retrieve();
so the new function is meant to retrieve an address from an array(or index im not sure)
the part I am mostly confused by is the second line:
SimpleStorage simpleStorage = SimpleStorage(address(simpleStorageArray[_simpleStorageIndex]))
the first word is the contract(I think) then the second word is the contract also? since we have a create contract function that reads:
function createSimpleStorageContract() public {
SimpleStorage simpleStorage = new SimpleStorage();
Then I am just slightly confused what the = does, as well as what is going on in the SimpleStorage(address(simpleStorageArray[_simpleStorageIndex]))

any help in explaining it to a newbie would be much appreciated!
submitted by Middey14 to solidity [link] [comments]


2021.12.05 09:11 Aaron-nyo-pagod-na Should we stop this please

Should we stop this please
https://preview.redd.it/km0uq3yitp381.png?width=1366&format=png&auto=webp&s=e5e108773bdfea219856003266fd861d542223fb
submitted by Aaron-nyo-pagod-na to PhoenixSC [link] [comments]


2021.12.05 09:11 Inner_Cherry I want to buy a new laptop to play Sims 4 with CC, some Expansion packs and mods. Do you think this one can handle it? :)

I want to buy a new laptop to play Sims 4 with CC, some Expansion packs and mods. Do you think this one can handle it? :) submitted by Inner_Cherry to Sims4 [link] [comments]


2021.12.05 09:11 remz77 Zekrom raid 2308 1730 0915

submitted by remz77 to PokemonGoRaids [link] [comments]


2021.12.05 09:11 RainSesh Well

Well submitted by RainSesh to bbmc_RP [link] [comments]


2021.12.05 09:11 EdwardBliss When was the last time you had an ice cream cone?

submitted by EdwardBliss to NoStupidQuestions [link] [comments]


2021.12.05 09:11 Acc_commercial Discord of her??

Discord of her?? submitted by Acc_commercial to anapaulasaenzOF [link] [comments]


2021.12.05 09:11 hdwgaming Red Alert Aftermath Remastered 4K - Allies Mission 2: In the Nick of Time - Hard Difficulty

Red Alert Aftermath Remastered 4K - Allies Mission 2: In the Nick of Time - Hard Difficulty submitted by hdwgaming to hdwgaming [link] [comments]


2021.12.05 09:11 I-Made-You-Gay They dropped my pay without telling me

So I worked meat dept, and am switching to fuel center until they close to help out. Worked here over 4 years, and was hired in at $14.55/HR. Just worked 3/5 days last week in meat dept, and they changed my pay last Sunday November 28 2021. I was making $16.45/HR two weeks ago, and now make $14.30/HR. That's less than I made when I got hired in over 4 years ago. No one told me that I would lose my pay or anything when I chose to do this. Is that a legal issue or just a "contact union and hope for the best" situation? I'm extremely upset right now, especially because I put in over 50 hours last week, and I just found out today that they dropped my pay....
submitted by I-Made-You-Gay to kroger [link] [comments]


2021.12.05 09:11 throwaway2926262 How do I ask for a threesome ?

How do I (16m) ask my girlfriend for a threesome ? I just wanna know how to do it cuz maybe she will get upset or maybe she will be calm or maybe she will kill me. I don’t wanna risk anything. So how do I ask her without risking to get her upset ?
submitted by throwaway2926262 to relationship_advice [link] [comments]


2021.12.05 09:11 FreebieMain Cherry Private Token Sale Successfully Completed

Cherry Private Token Sale Successfully Completed submitted by FreebieMain to CryptocurrencyICO [link] [comments]


2021.12.05 09:11 vickthedesigner Someone told me my design sucks

I made a t shirt design for sale on teesprings but someone told me it sucks. Check it out at vicks and let me know your thoughts.
submitted by vickthedesigner to TshirtLovers [link] [comments]


2021.12.05 09:11 Wafran What if... The fusion in the show was a Rhodonite and sapphire were just replacing pearl?

submitted by Wafran to stevenuniverse [link] [comments]


2021.12.05 09:11 AsgardiaGaming Top MMORPG PC News - Final Fantasy XIV Endwalker, ArcheAge, Lost Ark, New World, Into The Echo

Top MMORPG PC News - Final Fantasy XIV Endwalker, ArcheAge, Lost Ark, New World, Into The Echo submitted by AsgardiaGaming to gamers [link] [comments]


2021.12.05 09:11 BreadForGrills Whole Lotta Rock

Whole Lotta Rock submitted by BreadForGrills to playboicarti [link] [comments]


2021.12.05 09:11 AlucardVTep3s What does it mean to be a free human?

submitted by AlucardVTep3s to AskReddit [link] [comments]


2021.12.05 09:11 konnichiwa_senpai Harold Bloom interview on Harry Potter, the Internet and more (2000)

Harold Bloom interview on Harry Potter, the Internet and more (2000) submitted by konnichiwa_senpai to JordanPeterson [link] [comments]


2021.12.05 09:11 SnaxCapone Other forms of art

Do you find performing other types of art (playing an instrument, drawing etc) helps you with writing? Puts you in a creative mood? Or am I wasting time by playing the guitar when I could spend that time reading or writing more?
submitted by SnaxCapone to writing [link] [comments]


2021.12.05 09:11 cloudrestingonpretty Question about CAO

Hi, I did a PLC in 2019/2020 and got quite good results. I entered into a course but found at the start of second year I wasn’t enjoying or getting much from it so I have deferred for now.
My question is, if I make a new CAO application, can I use my PLC results from 2019/2020 on it? Thanks in advance.
submitted by cloudrestingonpretty to ireland [link] [comments]


2021.12.05 09:11 the_kazna Situation: Person got drunk and peed on the stairs in the house of another 7 housemates. What should the person do when being made fun of?

Obviously, person did clean up. One other housemate saw him peeing, although the person doesn't remember, but remembers perfectly well that they went to the toilet next to pee. Again, the housemate that saw him shouldn't be lying as there was some liquid on the stairs. All this aside, how does one approach being made fun of?
View Poll
submitted by the_kazna to polls [link] [comments]


2021.12.05 09:11 Grakchawwaa Hair Man

Hair Man submitted by Grakchawwaa to premiuminternet [link] [comments]


2021.12.05 09:11 sushenydv Energy from the Sky

Energy from the Sky submitted by sushenydv to Mandala [link] [comments]


2021.12.05 09:11 Mr_Bila Aeriessteele

Aeriessteele submitted by Mr_Bila to SeductiveGirls4Lifee [link] [comments]


2021.12.05 09:11 kreatesse Plato Was Wrong

two halves should make a whole you and me, supposedly
but i was one before we met in love with me wholeheartedly
you were not and took one half splitting me unknowingly
submitted by kreatesse to poetry_critics [link] [comments]


2021.12.05 09:11 soulexpert Горячие Ручьи, 1988-89гг..

Горячие Ручьи, 1988-89гг.. submitted by soulexpert to SeaSoul [link] [comments]


http://teplokonv.ru