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

Abi: How does type set<uint8_t> generate abi type uint8[] #304

Open
YaCoHuang opened this issue Aug 21, 2024 · 2 comments
Open

Abi: How does type set<uint8_t> generate abi type uint8[] #304

YaCoHuang opened this issue Aug 21, 2024 · 2 comments
Assignees
Labels
bug Something isn't working more-info

Comments

@YaCoHuang
Copy link

cdt-cpp version: 4.0.1

  • std::set<uint8_t> order_ids;

This actually generates abi

{
    "name": "order_ids",
    "type": "bytes"
}

and it is expected to generate

{
    "name": "order_ids",
    "type": "uint8[]"
}
@enf-ci-bot enf-ci-bot moved this to Todo in Team Backlog Aug 21, 2024
@bhazzard bhazzard added bug Something isn't working and removed triage labels Jan 16, 2025
@bhazzard
Copy link

We need to investigate whether it has always worked this way or if this is a regression.

Of particular interest is making sure that an intuitive JSON representation of an array of integers results.

@ericpassmore
Copy link
Contributor

Wharfkit/Antelope-Core handles Bytes as an array of UInt8 and should be agnostic of the change. https://github.com/wharfkit/antelope/blob/master/src/chain/bytes.ts#L9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more-info
Projects
Status: Todo
Development

No branches or pull requests

4 participants