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

Support expressions for extension and function during chain extension definition #2023

Open
xgreenx opened this issue Dec 18, 2023 · 0 comments
Assignees

Comments

@xgreenx
Copy link
Collaborator

xgreenx commented Dec 18, 2023

Both extension and function attributes require an explicit literal argument, which makes it impossible to have these constants defined in a single place and refer to them from both the trait definition and the runtime-side.

It would be more usable if ink! allows usage of the constant expression during the definition of the chain extension. It should be possible todo because ink! doesn't have any specific logic around literal values.

@xgreenx xgreenx self-assigned this Dec 18, 2023
@pmikolajczyk41 pmikolajczyk41 self-assigned this Jan 30, 2024
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

2 participants