Skip to content

Commit

Permalink
adapt changes from the sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Mar 6, 2023
1 parent 9939740 commit 85795da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Expand Up @@ -88,7 +88,7 @@ export const InterfaceCreateSoulname = (): JSX.Element => {
setLoadingMint(true);

if (identity?.identityId) {
await masa?.soulName.create?.(soulname, registrationPeriod, 'eth');
await masa?.soulName.create?.('eth', soulname, registrationPeriod);
closeModal?.(true);
} else {
await handlePurchaseIdentityWithSoulname?.(
Expand Down
2 changes: 1 addition & 1 deletion src/provider/modules/green/green.ts
Expand Up @@ -71,7 +71,7 @@ export const useGreen = (
phoneNumber: string,
code: string
): Promise<VerifyGreenResult | undefined> => {
const response = await masa?.green.create(phoneNumber, code);
const response = await masa?.green.create('eth', phoneNumber, code);
await queryClient.invalidateQueries(queryKey);
return response;
},
Expand Down
4 changes: 2 additions & 2 deletions src/provider/modules/identity/identity.ts
Expand Up @@ -62,9 +62,9 @@ export const useIdentity = (
paymentMethod: PaymentMethod
) => {
const result = await masa?.identity.createWithSoulName(
paymentMethod,
soulname,
registrationPeriod,
paymentMethod
registrationPeriod
);
await queryClient.invalidateQueries('identity');

Expand Down
4 changes: 2 additions & 2 deletions src/provider/modules/soulnames/soulnames.ts
Expand Up @@ -50,9 +50,9 @@ export const useSoulnames = (
paymentMethod: PaymentMethod
) => {
const result = await masa?.soulName.create(
paymentMethod,
soulname,
registrationPeriod,
paymentMethod
registrationPeriod
);
await queryClient.invalidateQueries('soulnames');

Expand Down

0 comments on commit 85795da

Please sign in to comment.