Skip to content

lang: Optimize trait Key implementation#652

Merged
armaniferrante merged 3 commits intosolana-foundation:masterfrom
fanatid:cheaper-key
Aug 31, 2021
Merged

lang: Optimize trait Key implementation#652
armaniferrante merged 3 commits intosolana-foundation:masterfrom
fanatid:cheaper-key

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 solana-foundation: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