Skip to content

Commit

Permalink
update: demo create collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Envoy-VC committed Dec 25, 2023
1 parent acaeeb0 commit 44bd9c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/demo/src/sections/collection/license/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { buildCollectionOpts } from '~/helpers';
import { CgSpinner } from 'react-icons/cg';

import * as Types from '~/types';
import { CollectionProgress } from 'atomic-toolkit';

export interface ContractDeploy {
contractTxId: string;
Expand Down Expand Up @@ -55,8 +56,8 @@ const CollectionLicense = () => {
router.push('/collection?step=basic-details');
};

const callback = (progress: string) => {
setProgress(progress);
const callback = (progress: CollectionProgress) => {
setProgress(progress.step);
};

const onFinish = async (values: Types.License) => {
Expand All @@ -82,7 +83,7 @@ const CollectionLicense = () => {
files,
});
console.log(opts);
const { mutateAsync } = await atomicToolkit.collection.createCollection(
const { mutateAsync } = atomicToolkit.collection.createCollection(
callback,
opts
);
Expand Down

0 comments on commit 44bd9c3

Please sign in to comment.