-
Notifications
You must be signed in to change notification settings - Fork 116
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 asset group burn itest, logging, and missing error handling #732
Conversation
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.
Nice changes! Though I think the first commit is incomplete or can now fail, see inline comment.
ff16f28
to
271fbeb
Compare
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.
LGTM 🎉
271fbeb
to
38148cd
Compare
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.
Very straight-forward test & easy to follow! 🪜
|
||
encodedGroupKey = hex.EncodeToString(assetGroupKey) | ||
assetGroup = assetGroups.Groups[encodedGroupKey] | ||
require.Len(t.t, assetGroup.Assets, 2) |
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.
I wonder if we could (in a future PR) extend this. I am curious what would happen if we burned all the amount from the second mint. Would this then have to be require.Len(t.t, assetGroup.Assets, 1)
?
How are we dealing with the failing vector? I think it will keep this pr from merging |
I think I might have found the issue, see #733 (comment). |
This commit adds code which handles `err != nil` which was previously absent.
This commit adds a few simple logging statements relating to the asset burn endpoint.
38148cd
to
2f09b7e
Compare
This PR adds an itest which ensures that we can burn an asset from an asset group in the simplest case.
It makes the following changes to the
BurnAsset
RPC endpoint:This PR was created in an attempt to re-produce bug #704