Skip to content

Indexed reference types in events with ABIEncoderV2 #5821

@axic

Description

@axic

The following compiles with the old ABI:

contract C {
  event Changed(string indexed name);

  function f() public {
     emit Changed("Notin'");
  }
}

But fails with ABIEncoderV2 (found here):

indexevent.sol:4:17: Error: Indexed reference types cannot yet be used with ABIEncoderV2.
  event Changed(string indexed name);
                ^-----------------^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions