Skip to content

Commit

Permalink
fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Mar 17, 2023
1 parent a8d47a0 commit e74d3df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/provider/masa-shape.ts
Expand Up @@ -54,7 +54,7 @@ export interface MasaShape {
address?: string;
};
isIdentityLoading?: boolean;
handlePurchaseIdentity?: () => void;
handlePurchaseIdentity?: () => Promise<void>;
handlePurchaseIdentityWithSoulname?: (
paymentMethod: PaymentMethod,
soulname: string,
Expand Down
12 changes: 5 additions & 7 deletions src/provider/modules/identity/identity.ts
Expand Up @@ -8,13 +8,11 @@ export const useIdentity = (
masa?: Masa,
walletAddress?: string
): {
identity:
| {
identityId?: BigNumber;
address?: string;
}
| undefined;
handlePurchaseIdentity: () => void;
identity?: {
identityId?: BigNumber;
address?: string;
};
handlePurchaseIdentity: () => Promise<void>;
handlePurchaseIdentityWithSoulname: (
paymentMethod: PaymentMethod,
soulname: string,
Expand Down

0 comments on commit e74d3df

Please sign in to comment.