Guys, what is the difference between using and not using Indexed keyword in events? I am wanting to reduce gas costs

Sep 29, 2023, 9:38 AM
indexed is needed when you want to be able to filter by that parameter
Sep 29, 2023, 9:49 AM
Oh , so if my goal is to reduce gas costs on events , then indexed can be omitted right
Like I already have getters for params emitted in event , and also offchain solutions can get that with loops, so it that indexed necessary?
and those events are purely for the purpose of user readability of txs on etherscan
Sep 29, 2023, 10:00 AM
then yes remove indexed
Sep 29, 2023, 10:01 AM
okay , one more thing, what problems it might cause in future
just an estimation of the nature of the problem
Sep 29, 2023, 10:02 AM
if you don't use events there won't be any issue
Sep 29, 2023, 10:03 AM
alright 👌
Sep 29, 2023, 11:44 AM

© 2024 Draquery.com All rights reserved.