Skip to content

BCD does not display contract's entrypoint name  #716

@rognierbenoit

Description

@rognierbenoit

Hi, when an entrypoint has one parameter of type OR, BCD does not find the entrypoint name.

For example :
https://better-call.dev/florencenet/KT1DHT7AQog7Ybnxm3yHSGUk2B1oY75zuKym/code

The entrypoint's name is displayed as entrypoint_2 while it should be second (this is because its argument type OR nat string is confused with the OR structure that describes entrypoints).

The archetype source code of this contract :

archetype test
entry first() {
  ()
}
entry second(a : or<nat, string>) {
  ()
}

Regards,
Ben

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