Smart Contract Security - Ethernaut Challenge #16 - Preservation

  Рет қаралды 1,727

DeFi Developer Academy

DeFi Developer Academy

Күн бұрын

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
@ufo
@ufo 2 жыл бұрын
Why the setFirstTime function input is uint but we could input a string?
@mattjaf
@mattjaf 2 жыл бұрын
I like learn something new in each one of these
@tommyatkins4806
@tommyatkins4806 2 жыл бұрын
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 :)
@IABV96
@IABV96 3 жыл бұрын
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.
@ufo
@ufo 2 жыл бұрын
same question here, tried to do everything in the contract and I convert address with uint160(address(this)) but didnt go thro
@haytwo
@haytwo 2 жыл бұрын
as I understood, address and uint256 preserve same length on storage. 32 bytes. So, it works
@kamalchan9756
@kamalchan9756 Жыл бұрын
@@ufo you can't bcz uint256 is bytes32 which means it hase 64 digit uint160 it donsn't have 64 digit
@MaxMohammadi
@MaxMohammadi 3 жыл бұрын
High quality content!
@markmaximus100
@markmaximus100 3 жыл бұрын
Thank you!
@moonboy7202
@moonboy7202 3 жыл бұрын
@@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!
@markmaximus100
@markmaximus100 3 жыл бұрын
@@moonboy7202 Thank you! Full Stack DApps is not available at the moment.
@moonboy7202
@moonboy7202 3 жыл бұрын
@@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
@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.
Smart Contract Security - Ethernaut Challenge #17 - Recovery
22:01
DeFi Developer Academy
Рет қаралды 1,3 М.
Sqlite Is Getting So Good
28:52
ThePrimeTime
Рет қаралды 199 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 67 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 91 МЛН
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 15 МЛН
Ethernaut 16 - Preservation
8:15
Smart Contract Programmer
Рет қаралды 2,2 М.
You Need Kubernetes?
27:59
ThePrimeTime
Рет қаралды 236 М.
Smart Contract Security - Ethernaut Challenge #10 - Re-entrancy
1:07:14
DeFi Developer Academy
Рет қаралды 4,1 М.
Ethernaut 13 - Gatekeeper One
8:45
Smart Contract Programmer
Рет қаралды 3,6 М.
Malware development 101: Creating your first ever MALWARE
28:00
Leet Cipher
Рет қаралды 382 М.
The Value of Source Code
17:46
Philomatics
Рет қаралды 200 М.
Smart Contract Security - Ethernaut Challenge #14 - Gatekeeper Two
22:34
DeFi Developer Academy
Рет қаралды 1,9 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 67 МЛН