When a contract triggers a throw, the Solidity document states:

Solidity will trigger an "invalid jump" and thus cause the EVM to revert all changes made to the state.

In this case, what happens to the ether value (not the gas) that was sent along with the transaction? Is it returned to the sender, or is it still stored in the contract?


2 Answers 2


The ether value that was sent along with the transaction (or call if the exception is caught) is returned to the sender if you use throw in Solidity.


Yes, all funds are returned to the sender, except the gas. https://github.com/ethereum/wiki/wiki/Solidity-Features#throw

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.