I am wondering how many bytes will be if you declare Contract type in the state variable of a contract like below.
contract ContractA {
// some code...
}
contract ContractB {
ContractA contractA; // how much bytes will this state take up?
constructor (address addr) {
contractA = ContractA(addr);
}
}
I am curious about this because 32 bytes in a single storage slot in solidity fit multiple variables into a single slot besides contract type variable.
Is it the same as the address type, 20 bytes?