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?

  • 2
    Yes, events store data and will always cost ether. Examples: ethereum.stackexchange.com/questions/1686/… – eth Mar 24 '17 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. – Rob Hitchens - B9lab Mar 24 '17 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 '17 at 13:12

Your Answer

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

Browse other questions tagged or ask your own question.