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: programdata_address field for Program account #1125

Conversation

paul-schaaf
Copy link
Contributor

No description provided.

@paul-schaaf paul-schaaf marked this pull request as ready for review December 11, 2021 00:31
use solana_program::instruction::AccountMeta;
use solana_program::program_error::ProgramError;
use solana_program::pubkey::Pubkey;
use std::fmt;
use std::ops::Deref;

// TODO: can we remove _account?

Copy link
Contributor Author

@paul-schaaf paul-schaaf Dec 11, 2021

Choose a reason for hiding this comment

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

@armaniferrante ^

is there any use to this field, considering that it's going to be empty struct all of the time

Copy link
Member

Choose a reason for hiding this comment

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

Yes the type is needed for the id() function. Though a better way of doing might be with PhantomData. Can consider that for a separate PR though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes that sounds better to me. #1140

lang/src/program.rs Outdated Show resolved Hide resolved
lang/src/program.rs Outdated Show resolved Hide resolved
lang/src/program.rs Outdated Show resolved Hide resolved
lang/src/program.rs Outdated Show resolved Hide resolved
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