-
Notifications
You must be signed in to change notification settings - Fork 6
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
Nhan/asset payment #9
Conversation
* asset burn guard * change payer for burn
…er-multi asset burn/payment multi
Nhan/asset mint limit
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
* The assetBurn guard allows minting by burning the | ||
* minter a Core Asset from a specified collection. | ||
* The asset will be burned. |
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.
Nit: unclear sentence
@@ -21,7 +21,7 @@ anchor-lang = "0.28.0" | |||
arrayref = "0.3.6" | |||
mpl-token-metadata = "3.2.1" | |||
mpl-utils = { version = "0.3", default-features = false } | |||
mpl-core = { version = "0.4.3" } | |||
mpl-core = { version = "0.6.1" } |
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.
FYI I release 0.7.0 yesterday. I thought you were having a CPI issue with assetBurn guard and 0.6.1 is from 16 days ago.
|
||
assert_keys_equal(&destination_account.key(), &self.destination)?; | ||
|
||
while i < usize::from(self.num) { |
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.
This is fine just some rust tips.
This is slightly hardcore for a number cast, I think normally you just see self.num as usize
.
Also could use a for loop for i in 0..self.num as usize
No description provided.