Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected event in ABI for compiler v0.26.0 on macOS #953

Open
KumaCrypto opened this issue Nov 11, 2023 · 0 comments
Open

Unexpected event in ABI for compiler v0.26.0 on macOS #953

KumaCrypto opened this issue Nov 11, 2023 · 0 comments

Comments

@KumaCrypto
Copy link
Contributor

Hi,
I noticed a strange thing that when using compiler v0.26.0 for Mac when compiling the following code from the documentation tutorial with fe build ./file_name.fe:

contract GuestBook {
    messages: Map<address, String<100>>
}

The compilation is successful, but the generated ABI file includes an unexpected event named "Context":

[
  {
    "type": "event",
    "name": "Context",
    "inputs": [],
    "anonymous": false
  }
]

This seems inconsistent with the code since there's no corresponding "Context" event in the contract. The documentation also suggests that the ABI for an empty contract should resemble "an empty array."

"The GuestBook_abi.json is a JSON representation that describes the binary interface of our contract, but since our contract doesn't yet expose anything useful, its content for now resembles an empty array."

I wanted to flag this issue, hoping it can assist in product improvement. Thanks for your efforts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant