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

Do not generate client fns for reserved hook functions #1277

Merged
merged 2 commits into from
May 31, 2024

Conversation

leighmcculloch
Copy link
Member

What

Do not generate client fns for reserved hook functions.

Why

There's no value in generating client functions for reserved hook functions (that begin with '__') because the Soroban Env won't let them be invoked directly anyway. So by generating the functions we're creating code that can never successfully be called.

Note that the function should still be generated into the interface/trait so that someone implementing the contracts trait implements the entire contract and not a subset.

Related to stellar/stellar-cli#1344

@leighmcculloch leighmcculloch marked this pull request as ready for review May 31, 2024 02:49
@leighmcculloch leighmcculloch added this pull request to the merge queue May 31, 2024
Merged via the queue into main with commit 1cdc6e4 May 31, 2024
17 checks passed
@leighmcculloch leighmcculloch deleted the orchotomy-onycholysis branch May 31, 2024 04:18
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

Successfully merging this pull request may close these issues.

2 participants