Master the powerful Solidity programming language in just 17 video lessons by getting "The Solidity Deep Dive" at www.defideveloperacademy.com/the-solidity-deep-dive
Пікірлер: 13
@ufo2 жыл бұрын
Why the setFirstTime function input is uint but we could input a string?
@mattjaf2 жыл бұрын
I like learn something new in each one of these
@tommyatkins48062 жыл бұрын
You're a great teacher! Learning so much! I am a little confused why we are able to pass a string / address into setFirstTime(). I understand it is so we can override storage slot 0 and delegate call with our attack contract, but I am unsure why / how solidity lets us pass in anything that isn't a uint? Hopefully my question makes sense :)
@IABV963 жыл бұрын
Mark, I´ve got a question here. How were you able to pass the Preservation contract your address if the type of the input of the function "setFirstTime" is a uint and not an address.
@ufo2 жыл бұрын
same question here, tried to do everything in the contract and I convert address with uint160(address(this)) but didnt go thro
@haytwo2 жыл бұрын
as I understood, address and uint256 preserve same length on storage. 32 bytes. So, it works
@kamalchan9756 Жыл бұрын
@@ufo you can't bcz uint256 is bytes32 which means it hase 64 digit uint160 it donsn't have 64 digit
@MaxMohammadi3 жыл бұрын
High quality content!
@markmaximus1003 жыл бұрын
Thank you!
@moonboy72023 жыл бұрын
@@markmaximus100 I love your teaching style. Is the Full Stack DApp course still available? Roughly how many hours of content does it include? Thanks, cheers!
@markmaximus1003 жыл бұрын
@@moonboy7202 Thank you! Full Stack DApps is not available at the moment.
@moonboy72023 жыл бұрын
@@markmaximus100 ok cool thank you. been watching your older videos on solidity and working my way up but wow you make it very bearable and easy to follow. amazing stuff, all the best to you!
@kamalchan9756 Жыл бұрын
ok now i get it thats why when i get Storage 0 of Preservation it doesn't give me an address but it gives me a time stamp so the delegatecall update variables not by its name but by its slot location.