Quick question. Given this Solidity code:
contract A {
constructor(int x){}
}
contract B is A {
constructor(int x) A(x) {}
}
Suppose the creator of B
is address A1
(msg.sender
when calling B
constructor). When B
calls A
’s constructor, what is the msg.sender
for A
’s constructor? Is it address of B
contract, or A1
? In other words, is it an internal or external call.
Thanks!