-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Create token with collection object. #13215
Conversation
⏱️ 6h 9m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13215 +/- ##
=======================================
Coverage 57.6% 57.6%
=======================================
Files 834 834
Lines 198397 198397
=======================================
Hits 114318 114318
Misses 84079 84079 ☔ View full report in Codecov by Sentry. |
c20b4fb
to
494d06c
Compare
494d06c
to
1b8a5f1
Compare
1b8a5f1
to
2634803
Compare
// Create initial token with current collection name | ||
create_token_with_collection_helper(creator, collection, token_name); | ||
|
||
// Set new collection name |
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.
sorta minor nit, these comments are not helpful, because if you can't understand collection::set_name
you will have difficulty with the comment...
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.
Let me remove these comments which don't add context.
// Set new collection name | ||
collection::set_name(&mutator_ref, string::utf8(b"new collection name")); | ||
|
||
// Create new token after changing collection name |
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.
same here...
if you want, put at the top a brief description of the test.
2634803
to
b2a5b39
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Description
Amend create token functions which take in
Object<Collection>
to create tokens using theObject<Collection>
rather than the collection name.collection_name
.Object<Collection>
is added.Extra documentation will be added to the
set_name
function in collection.move, and the current token creation functions which take incollection_name
.Type of Change
Which Components or Systems Does This Change Impact?
How Has This Been Tested?
Unit tests added.
Checklist