If I use the send
to send money from a contract to a user, it works fine.
For instance this is ok:
if (!msg.sender.send(this.balance)) error = 1;
On the contrary, if I use send
to send to another contract, if fails. Always.
if (!secondContract.send(this.balance)) error = 1;
I understood that any address was ok, for the send, or not? Is that a limitation of MIX?
Furthermore, is there any place I can found the API of send, (or something similar)?
0 ·
Comments
Are you sure that secondContract is an address?