When I trying to send a value to the exam contract through contract.sendTransaction
. It will fail with an error of “Out of gas”.
Please refer to the transaction address
https://ropsten.etherscan.io/tx/0xfac0eb77fbe6ce2ef3492e39dfeeb9d0bb233a1bbd2ba831e39dc823022b1ce4
to see the detail.
Theoretically, this approach should be a valid transaction and would be accepted, no matter if this is the answer to this exam or not.