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: Export Discriminator trait from prelude #3075

Conversation

acheroncrypto
Copy link
Collaborator

Problem

Discriminator trait is required to be in scope to get access to the data type's discriminator, but it requires manually importing the trait because it's not exported from prelude.

Summary of changes

  • Export Discriminator trait from prelude
  • Remove redundant Discriminator trait import in codegen
  • Remove full paths for the Discriminator trait from IDL's discriminator field generation

Copy link

vercel bot commented Jul 8, 2024

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

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto merged commit 0a1d458 into coral-xyz:master Jul 8, 2024
29 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant