Does the "send" works only for user accounts (is a MIX issue)?

tcimolitcimoli Cagliari - ItalyPosts: 35
edited May 2016 in Mix
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)?

Comments

Sign In or Register to comment.