Accessing Internal/Private Variables In Solidity

I’ve found myself accessing a lot of internal/private variables in Solidity recently, and decided to write out a reference guide for me in the future.
Dynamic Arrays / Structs contract C { address private myAddr; // Slot 0; bytes32[] private myBytes; // Slot 1; Keccak256(1) + offset struct MyStruc…

Actions