I need to determine (programatically) that the contract correctly refunded value. Contract uses this command:
msg.sender.transfer(msg.value)
Of course, I can check balance before and after the transaction (and that works), but I was hoping I could inspect the transaction directly. Is this possible?
As this question shows, I am a bit confused where these "refund transactions" are written. Are they a part of original transaction?