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

feat: Add has_one relations inference so you don't need to pass accounts that are referenced by a has_one #2160

Merged

Conversation

ChewingGlass
Copy link
Contributor

This is similar to PDA inference. In typescript, you can now avoid passing to .accounts() accounts that can be resolved by fetching and pulling fields off of provided public keys.

Also added a few handy methods I'd like to see. Can remove if needed.

See the tests/ repo for more details.

@vercel
Copy link

vercel bot commented Aug 30, 2022

@ChewingGlass is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@staccDOTsol
Copy link

Nooahhhhh

@@ -18,6 +18,7 @@ pub fn parse(
filename: impl AsRef<Path>,
version: String,
seeds_feature: bool,
relations_feature: bool,
Copy link
Member

Choose a reason for hiding this comment

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

Should we combine this with the seeds_feature ?

Copy link
Member

Choose a reason for hiding this comment

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

The nomenclature isn't accurate but the intention is the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Up to you. You mean keep the same name? seeds = true

Copy link
Member

Choose a reason for hiding this comment

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

Yes.

Copy link
Member

@armaniferrante armaniferrante left a comment

Choose a reason for hiding this comment

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

Please remove the package-lock.json file and the yarn error log.

@armaniferrante armaniferrante merged commit e69e50d into coral-xyz:master Sep 10, 2022
Henry-E pushed a commit to Henry-E/anchor that referenced this pull request Dec 6, 2022
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.

None yet

3 participants