// when deploying an instance, we must specify its index (sequence number)
init(parent: Address, seqno: Int) {
require(sender() == parent, "not the parent");
self.parent = parent;
self.seqno = seqno;
}
why not just:
// when deploying an instance, we must specify its index (sequence number)
init(seqno: Int) {
self.parent = sender();
self.seqno = seqno;
}
Yes, you're right. Also, "calling init" multiple times is possible via getting the init package through initOf and then deploying multiple contracts with that code and data acquired.
Hello,
https://tact-by-example.org/06-authenticating-children
why not just:
Is it possible to call init() multiple times?