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

make_tuple #231

Open
heifner opened this issue Jan 12, 2024 · 0 comments
Open

make_tuple #231

heifner opened this issue Jan 12, 2024 · 0 comments

Comments

@heifner
Copy link
Member

heifner commented Jan 12, 2024

https://docs.eosnetwork.com/docs/latest/smart-contracts/actions#creating-the-tuple

Common issue with make_tuple is using literal c-strings like make_tuple(name, "withdrawl") instead of make_tuple(name, std::string("withdrawl")). Worth pointing this out in the docs.

Also would be nice to provide an example of defining a struct instead of using make_tuple.

Example:
https://github.com/cc32d9/eosio_point_of_sale/blob/dabf7c048130dc3be0197b120f7a2a73fcac1fe1/contracts/pos.cpp#L880

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