Is it possible to do something like
registry = new assetRegistry.value(1 ether)();
?
This is particularly useful when the constructor function of assetRegistry calls the ethereum alarm service, because the alarm service takes a fee
Is it possible to do something like
registry = new assetRegistry.value(1 ether)();
?
This is particularly useful when the constructor function of assetRegistry calls the ethereum alarm service, because the alarm service takes a fee
I think the Ether would be sent to address 0. But what you can do is pre-compute the address of the new contract and send the Ether first, then have the contract create the new contract. Highly advised to use testnet first, because coordination is required to make sure the correct account nonce, which would have to be provided from the outside.
address precomputedRegContract = sha3(rpl_encode(this, nonce));
– dor
May 29 '16 at 04:36