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: #[account(owner)] uses pubkey instead of account target #691

Merged
merged 4 commits into from
Sep 9, 2021

Conversation

armaniferrante
Copy link
Member

@armaniferrante armaniferrante commented Sep 8, 2021

No description provided.

@armaniferrante armaniferrante changed the title lang: Owner check for seeds lang: Owner uses pubkey instead of account target Sep 9, 2021
@armaniferrante armaniferrante changed the title lang: Owner uses pubkey instead of account target lang: #[account(owner)] uses pubkey instead of account target Sep 9, 2021
@armaniferrante armaniferrante merged commit 526de23 into master Sep 9, 2021
@armaniferrante armaniferrante deleted the armani/owner branch September 9, 2021 21:32
quote! {
if #ident.to_account_info().owner != #owner_target.to_account_info().key {
if #ident.to_account_info().owner != &#owner_address {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&#, really? :D Rust is in love with Perl apparently 😂

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.

2 participants