GetCode
library GetCode
The following example provides library code to access the code of another contract and load it into a bytes variable. This is not possible at all with “plain Solidity" and the idea is that assembly libraries will be used to enhance the language in such ways. Took from Solidity official documentation https://solidity.readthedocs.io/en/latest/assembly.html?highlight=getCode.
Index
Reference
Functions
at
function at(address _addr) internal view returns (bytes)
- Parameters:
_addr
- address- Returns:
- bytes