Skip to content

lang: #[account(owner)] uses pubkey instead of account target#691

Merged
armaniferrante merged 4 commits into
masterfrom
armani/owner
Sep 9, 2021
Merged

lang: #[account(owner)] uses pubkey instead of account target#691
armaniferrante merged 4 commits into
masterfrom
armani/owner

Conversation

@armaniferrante

@armaniferrante armaniferrante commented Sep 8, 2021

Copy link
Copy Markdown
Contributor

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
let owner_address = &c.owner_address;
quote! {
if #ident.to_account_info().owner != #owner_target.to_account_info().key {
if #ident.to_account_info().owner != &#owner_address {

Copy link
Copy Markdown
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 😂

Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
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