-
Notifications
You must be signed in to change notification settings - Fork 683
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 ability to create assets of other types with the GUI #243
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.
Looks good. Nothing concerning except maybe the 30-char check in asset list setup.
@@ -27,6 +27,13 @@ enum AssetType | |||
REISSUE | |||
}; | |||
|
|||
enum IssueAssetType |
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.
Could these be moved somewhere into qt codebase since they only seem to apply there?
GetAllOwnedAssets(model->getWallet(), names); | ||
for (auto item : names) { | ||
std::string name = QString::fromStdString(item).split("!").first().toStdString(); | ||
if (name.size() != 30) |
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.
What is this check for? I think we could have a 30-char asset name (plus !)..
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. So, I am splitting the ! off of these assets names. Then after that if they are < 30 characters. They won't show up because the asset name is already at the limit
src/qt/createassetdialog.cpp
Outdated
@@ -170,7 +216,13 @@ void CreateAssetDialog::ipfsStateChanged() | |||
|
|||
void CreateAssetDialog::checkAvailabilityClicked() | |||
{ | |||
QString name = ui->nameText->text(); | |||
QString 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.
these lines duplicate the block starting at line 160 -- could possibly be consolidated
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.
Consolidated into function
src/qt/createassetdialog.cpp
Outdated
@@ -244,8 +326,14 @@ void CreateAssetDialog::onCreateAssetClicked() | |||
} else { | |||
address = ui->addressText->text(); | |||
} | |||
QString 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.
ditto
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.
Consolidated into function
No description provided.