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

lang: Optimize trait Key implementation #652

Merged
merged 3 commits into from
Aug 31, 2021

Conversation

fanatid
Copy link
Contributor

@fanatid fanatid commented Aug 31, 2021

Closes #608

While AsRef<AccountInfo> was added to AccountInfo in solana:1.7.11 it's still not possible to use for trait Key 😢

So I changed trait Key by removing AccountInfo cloning and also added an additional AsRef<AccountInfo> implementation which can be used in programs.

@fanatid fanatid mentioned this pull request Aug 31, 2021
@armaniferrante armaniferrante merged commit c67dea4 into coral-xyz:master Aug 31, 2021
@fanatid fanatid deleted the cheaper-key branch August 31, 2021 07:28
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.

lang: Implement Key trait without to_account_info() calls
2 participants