Should I add a check to make sure Ether was sent along with the transaction or is that redundant?


No. It's OK to have a function with the payable modifier not receiving any ether.

If you want to ensure that your payable function receives some ether, you can add your own modifier or if (msg.value == 0) throw; to your function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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