-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add mint::freeze_authority attribute when init-ing a mint. #835
Add mint::freeze_authority attribute when init-ing a mint. #835
Conversation
owner: Expr, | ||
freeze_authority: Option<Expr>, | ||
decimals: Expr, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why my rust fmt formats this different :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean the order of the fields? or just the indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah just indentation stuff—it added newlines to Token
and AssociatedToken
that I wasn't expecting (my change only touches Mint
).
This is very useful! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool thanks @cqfd this is exactly what i was thinking. Was going to make a PR but i wasnt sure all the places i would need to look. This is a good example for me to see
This came up in discord and I thought it would be a good excuse to learn some more macro stuff (no worries if this isn't actually a feature that needs to be included in anchor!).