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?
-
2Yes, 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.– Rob HitchensMar 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.– SusmitMar 24, 2017 at 13:12