Closed marc0olo closed 1 year ago
The docs clearly say that A field is indexed if it fits in a 32-byte word, i.e. - bool - int - bits - address - oracle(_, _) - oracle_query(_, _) - contract types - bytes(n) for n ≤ 32, in particular hash
- for "convenience" the indexed
keyword is just for decoration/documentation - I.e. Approval
in your example have 4 indexed fields. This is because of reasons - i.e. that Ethereum/EVM works like this and it was decided doing the same was a good thing.
sorry for not reading the docs THAT clearly. I assumed that this as to be set explicitely. my proposal is to remove indexed
then completely as it is nonsense IMO.
can you remember or tell me why we have a limit for 3 of those values? just wondering. I guess there is a reason for that
@arjanvaneersel here we have it clarified now. sorry for the inconvenience in general. we should have checked the AEX-141 proposal better. my proposal is to just replace "bool" with a "string" in the end
the docs say that events can have 0-3 indexed values:
following event definition is producing an error in the compiler:
error:
is 3 the maximum amount of values we can provide to events in general?! is this a bug? we should fix and/or clarify in the docs