Assuming we're calling the following: function get() external payable;
by using another contract: contract.get({value: 1 ether})
Q1 - we are not able to check the result of that transaction right? Especially because the payable function does not return a value
Q2 - since we're not able to check the result, what are the chances that the transaction fails?
Asking this because of the following. Lets say we have a contract which updates the balances before calling the contract's payable get() function.
balance = balance - amount;
contract.get({value: amount});
Since we're not checking the transaction result, if it fails, the amount will not be send but balance will be reduced.
Is this correct?