bcdhub icon indicating copy to clipboard operation
bcdhub copied to clipboard

BCD does not display contract's entrypoint name

Open rognierbenoit opened this issue 3 years ago • 3 comments

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

rognierbenoit avatar Jun 26 '21 13:06 rognierbenoit