Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Aug 9, 2023
1 parent 2d22ea3 commit 584eebf
Showing 1 changed file with 2 additions and 31 deletions.
Expand Up @@ -51,35 +51,6 @@ const SoulnameModal = ({
// const handleErrorConfirmed = useCallback(() => setError(null), []);

const handleMintSuccess = async (result: CreateSoulNameResult) => {
// // TODO: Remove lint disable
// // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
// const price = result?.metadata?.value;
// // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
// const priceValue = (price?.toNumber() as number) ?? '';
// // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
// const paymentMethod = result?.metadata?.paymentMethod as string;

// const [symbol, name] = await Promise.all([
// masa?.contracts.instances.SoulNameContract.symbol(),
// masa?.contracts.instances.SoulNameContract.name(),
// ]);

// fireMintEvent(
// address ?? '',
// masa?.config.networkName ?? '',
// masa?.contracts.instances.SoulNameContract.address ?? '',
// name ?? '',
// symbol ?? '',
// 'Soulname',
// '0', // TODO: Value in USD
// 'USD',
// paymentMethod,
// priceValue.toString(),
// {
// soulname,
// wallet_type: connector?.name ?? "Unknown"
// }
// );
onMintSuccess?.({ ...result, soulname, connector });
};

Expand Down Expand Up @@ -237,7 +208,7 @@ export const CreateSoulnameModal = NiceModal.create(
onError,
closeOnSuccess,
}: {
onMintSuccess?: () => void;
onMintSuccess?: (result: CreateSoulNameResult) => void;
onMintError?: () => void;
onRegisterFinish?: () => void;
onSuccess?: () => void;
Expand Down Expand Up @@ -265,7 +236,7 @@ export const openCreateSoulnameModal = ({
onError,
closeOnSuccess,
}: {
onMintSuccess?: () => void;
onMintSuccess?: (result: CreateSoulNameResult) => void;
onMintError?: () => void;
onRegisterFinish?: () => void;
onSuccess?: () => void;
Expand Down

0 comments on commit 584eebf

Please sign in to comment.