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

dev: investigate Scarb macros to simulate a default entrypoint call #818

Open
enitrat opened this issue Aug 8, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@enitrat
Copy link
Collaborator

enitrat commented Aug 8, 2024

CairoZero had __default__ entrypoints, calling default would fallback on a generic behavior. We don't have this now, but what we can do is create a special type of DefaultDispatcher, that would wrap the internal call to a call to __default__ on a given contract.

Perhaps this can be simplified with a Scarb Macro that, given a starknet interface, would generate the dispatcher that abstracts this default call.

@enitrat
Copy link
Collaborator Author

enitrat commented Aug 19, 2024

Tracking discussion starkware-libs/cairo#6170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 Backlog
Development

No branches or pull requests

1 participant