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

refactor: simplify trait bounds in chain extension #102

Closed
Tracked by #132
Daanvdplas opened this issue Jul 5, 2024 · 2 comments
Closed
Tracked by #132

refactor: simplify trait bounds in chain extension #102

Daanvdplas opened this issue Jul 5, 2024 · 2 comments

Comments

@Daanvdplas
Copy link
Collaborator

Daanvdplas commented Jul 5, 2024

The chain extension functions' generic parameters are bounded by traits. This will increase with more future pop api integrations. Perhaps we can just use Runtime

@chungquantin
Copy link
Collaborator

I don't find any problem with this issue as Polkadot SDK also have something like

impl<C> ChainExtension<C: Config> for ........

Where Config is the Config of the Runtime

@Daanvdplas
Copy link
Collaborator Author

Correct, this is an old issue

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