Skip to content

chore: Change index in inbox #9085

Description

@LHerskind

Update the index in the MessageSent event, such that it is the index not in the subtree, but for the global tree such that users can simply use it and don't need access to a node if they are to consume it in public.

emit MessageSent(inProgress, index, leaf);

Computing it should be fairly straight forward since the trees have constant size, so we can use the tree number * size + current index as the index in the global tree.

This will help @rahul-kothari not go insane.

Activity

  1. changed the title [-]chore: Change index in inb[/-] [+]chore: Change index in inbox[/+] on Oct 8, 2024
  2. added
    A-ux/devexArea: relates to external ux / devex. (Users typically are devs) (See also A-internal-devex)
    on Oct 8, 2024
  3. added a commit that references this issue on Oct 10, 2024
    375c017
  4. added a commit that references this issue on Oct 18, 2024
  5. added a commit that references this issue on Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ux/devexArea: relates to external ux / devex. (Users typically are devs) (See also A-internal-devex)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions