Skip to content
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

Merged
merged 5 commits into from
Aug 22, 2018

Conversation

blondfrogs
Copy link
Contributor

No description provided.

Copy link
Contributor

@cfox cfox left a 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
Copy link
Contributor

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)
Copy link
Contributor

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 !)..

Copy link
Contributor Author

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

@@ -170,7 +216,13 @@ void CreateAssetDialog::ipfsStateChanged()

void CreateAssetDialog::checkAvailabilityClicked()
{
QString name = ui->nameText->text();
QString name = "";
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consolidated into function

@@ -244,8 +326,14 @@ void CreateAssetDialog::onCreateAssetClicked()
} else {
address = ui->addressText->text();
}
QString name = "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consolidated into function

@blondfrogs blondfrogs merged commit 393aa8a into develop2 Aug 22, 2018
@blondfrogs blondfrogs deleted the support_subassets_gui branch September 21, 2018 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants