State Variables Packed into a Slot | EVM Storage 3
Smart Contract Programmer
Example of writing to state variables packed into a single slot
Bit masking https://youtu.be/luCjY2IQEuw
0:00 Intro 3:25 Write to slot 0 4:41 Write to state variable s_a 7:12 Write to state variable s_b 10:00 Write to state variable s_c 12:08 Write to state variable s_d 13:49 Fix code 14:00 Test test_sstore 14:19 slot and offset 19:06 Test test_sstore_using_offset
Code corrections 9:15 add should be and 11:38 add should be and 13:08 add should be and
Code https://solidity-by-example.org/evm/storage/
Take a course https://www.smartcontract.engineer/
Remix https://remix.ethereum.org
#Solidity #SmartContract #Ethereum #スマートコントラクト
Follow https://odysee.com/@SmartContractProgrammer:8 https://twitter.com/ProgrammerSmart https://discord.gg/bt8FK2wkcW https://t.me/smartcontractprogrammer https://smartcontractprogrammer.com ... https://www.youtube.com/watch?v=Z0tC7B4c4Cc
57828990 Bytes