pragma solidity ^0.8.0;
contract C {
string internal secret= "secret data";
function x() internal returns (uint) {
return 10;
}
}
Accessing Internal Variable:
web3.eth.getStorageAt('0x6260319bcbcbf33f84397ae0000e49b0f50ee075', 0, (e, v) => console.log(web3.toAscii(v)));
So far what i understand is we can access Internal Variables through storage, What i want to know is if there is a way to also access Internal Functions, by layout i understand that they dont exist in storage section of EVM. so if we can access them, how ?