0

Lets say events are invoked from all the methods of a contract. Each event is storing some data. The methods where only computation or data fetching logic is applied will it cost ether if any event is generated from these kind of methods?

3
  • 2
    Yes, events store data and will always cost ether. Examples: ethereum.stackexchange.com/questions/1686/…
    – eth
    Mar 24, 2017 at 7:16
  • Events that only fetch and do logic may be marked "constant" in which case the event mission won't work as might be expected. Mar 24, 2017 at 12:40
  • Well the methods could be only constant when there is no storage operation. If it is generating an event then i believe it cannot be constant. That means as a convention we should not apply any event in those kind of methods.
    – Susmit
    Mar 24, 2017 at 13:12

0

Your Answer

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

Browse other questions tagged or ask your own question.