diff --git a/apps/Mintbase/widget/Mintbase/App/ContractProfilePage/Mint/Index.jsx b/apps/Mintbase/widget/Mintbase/App/ContractProfilePage/Mint/Index.jsx
index ccb0a279..f2eeb2cc 100644
--- a/apps/Mintbase/widget/Mintbase/App/ContractProfilePage/Mint/Index.jsx
+++ b/apps/Mintbase/widget/Mintbase/App/ContractProfilePage/Mint/Index.jsx
@@ -230,7 +230,9 @@ const Mint = ({ isDarkModeOn, contractId }) => {
const [description, setDescription] = useState("");
const [metaDataStatus, setMetaDataStatus] = useState(false);
const [loadingUpload, setLoadingUpload] = useState("");
+ const [tags, setTags] = useState([]);
const [activeCategory, setActiveCategory] = useState(-1);
+ const [royalties, setRoyalties] = useState([]);
const [img, setImg] = useState(null);
const uploadFile = (files) => {
@@ -276,6 +278,25 @@ const Mint = ({ isDarkModeOn, contractId }) => {
"Please make sure that all required fields are filled"
);
}
+ let royaltiesAvailable = [];
+ if (
+ royalties.some((data) => data.accountId !== "" && data?.percent !== "")
+ ) {
+ royaltiesAvailable = royalties.map((data) => ({
+ ...data,
+ percent: Number(data.percent) / 100,
+ }));
+ } else if (
+ royalties.length === 1 &&
+ royalties.some((data) => data.accountId === "" && data?.percent === "")
+ ) {
+ royaltiesAvailable = null;
+ } else {
+ return setErrorMessage(
+ "Please make sure all Royalties fields are filled"
+ );
+ }
+
const metadata = {
title,
description,
@@ -283,8 +304,9 @@ const Mint = ({ isDarkModeOn, contractId }) => {
extra: [],
store: contractId,
type: "NEP171",
+ royalties: royaltiesAvailable,
category: categories[activeCategory],
- tags: [],
+ tags: tags,
};
const owner = context.accountId;
mint(
@@ -433,6 +455,25 @@ const Mint = ({ isDarkModeOn, contractId }) => {
))}
+ Tags
+