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 23, 2023
1 parent 5711be9 commit 187b9e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -21,7 +21,7 @@ export const InterfaceCreateSoulname = (): JSX.Element => {
const [isAvailable, setIsAvailable] = useState<boolean>(true);
const [registrationPeriod, setRegistrationPeriod] = useState<number>(1);
const [registrationPrice, setRegistrationPrice] = useState<string>('0');
const [paymentMethod] = useState<PaymentMethod>('eth');
const [paymentMethod] = useState<PaymentMethod>('ETH');
const [isLoadingMint, setLoadingMint] = useState(false);
const [showError, setShowError] = useState(false);

Expand Down Expand Up @@ -102,10 +102,10 @@ export const InterfaceCreateSoulname = (): JSX.Element => {
// do we have an identity yet?
identity?.identityId
? // yes, only mint soul name
await masa?.soulName.create?.('eth', soulname, registrationPeriod)
await masa?.soulName.create('ETH', soulname, registrationPeriod)
: // nope, mint both
await handlePurchaseIdentityWithSoulname?.(
'eth',
'ETH',
soulname,
registrationPeriod
);
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('eth', phoneNumber, code);
const response = await masa?.green.create('ETH', phoneNumber, code);
await queryClient.invalidateQueries(queryKey);
return response;
},
Expand Down

0 comments on commit 187b9e0

Please sign in to comment.