Skip to content

Commit

Permalink
add token metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine committed Sep 25, 2024
1 parent 5e3b73b commit 4b94fa4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resources/js/components/pages/create/CreateToken.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@
label="Description"
description="The description of the token."
/>
<FormInput
v-model="symbol"
name="symbol"
label="Symbol"
description="The symbol of the token."
required
/>
<FormInput
v-model="recipient"
name="recipient"
Expand Down Expand Up @@ -412,6 +419,7 @@ const capAmount = ref();
const infuseAmount = ref();
const isCurrency = ref(false);
const infuseEnj = ref(false);
const symbol = ref('');
const infuseAccess = ref('Only Me');
const beneficiaryAddress = ref('');
const beneficiaryPercentage = ref(0);
Expand Down Expand Up @@ -443,6 +451,7 @@ const validation = yup.object({
imageUrl: stringNotRequiredSchema,
name: stringRequiredSchema,
description: stringNotRequiredSchema,
symbol: stringRequiredSchema,
collectionId: collectionIdRequiredSchema,
tokenId: stringRequiredSchema,
recipient: addressRequiredSchema,
Expand Down Expand Up @@ -544,6 +553,10 @@ const createToken = async () => {
...simpleAttributes(),
...attributes.value.filter((a) => a.key !== '' && a.value !== ''),
],
metadata: {
name: name.value,
symbol: symbol.value,
},
},
idempotencyKey: idempotencyKey.value,
skipValidation: skipValidation.value,
Expand Down

0 comments on commit 4b94fa4

Please sign in to comment.