contract one{
unint number;
function saveNumber(unint _number){ number = _number; }
}
contract two{
function callOtherFunctionAndAlsoTransferFunds(){
oneContract = one('contractaddress');
oneContract.saveNumber(6);
assert(msg.sender.transfer(10000000));
}
}
The line I am concerned about is
assert(msg.sender.transfer(10000000));
- Can I do this ?
- If this throws an exception, will the internal transaction that called contract one also be reversed ?