-
Notifications
You must be signed in to change notification settings - Fork 27
suggest language changes, order of arguments #24
base: develop
Are you sure you want to change the base?
Conversation
We could make |
Thanks, looks like good improvements. Should be no problems adopting this if it's not to much work to change in our libs etc. I moved the PR to be against Could you elaborate on what |
Each event actually gets 4 indices, but solidity uses one automatically for the event signature. This is why you can do |
@nmushegian the naming of Thank you for the tip using The naming of |
@zmitton Note that changing the argument order definitely will change the bytecode. It's kind of a personal aesthetics thing, but it feels much cleaner to think of both issuer/subject addresses as "higher order" indices than key/value. I think changing A basic example for indexing by value is to have reverse lookups. For example if I can mark |
at dapphub we're taking a look at this, we've wanted something like this forever. This PR is some suggested changes, the most important one is changing the argument order, purely for aesthetic / usability reasons. The concept of
registrationIdentifier
is replaced with akey
, as in simple key-value pairs you can write "about" anyone.open issues:
from
/to
could have clearer names (but I prefer this graph analogy overissuer
andsubject
)