Skip to content

Commit

Permalink
update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Mar 24, 2023
1 parent 419432e commit 51bac11
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -33,7 +33,7 @@
"author": "hide-on-bush",
"dependencies": {
"@babel/preset-typescript": "^7.21.0",
"@masa-finance/masa-sdk": "^1.10.7",
"@masa-finance/masa-sdk": "^1.11.0",
"@metamask/providers": "^10.2.1",
"babel-loader": "^9.1.2",
"babel-plugin-import": "^1.13.6",
Expand Down
5 changes: 3 additions & 2 deletions src/provider/modules/identity/identity.ts
Expand Up @@ -49,9 +49,10 @@ export const useIdentity = (
);

const handlePurchaseIdentity = useCallback(async (): Promise<boolean> => {
const created: boolean = (await masa?.identity.create()) || false;
const result = await masa?.identity.create();
await queryClient.invalidateQueries(['identity']);
return created;

return !!result?.success;
}, [masa]);

const handlePurchaseIdentityWithSoulname = useCallback(
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -2015,10 +2015,10 @@
dependencies:
ethers "~5.7.2"

"@masa-finance/masa-sdk@^1.10.7":
version "1.10.7"
resolved "https://registry.yarnpkg.com/@masa-finance/masa-sdk/-/masa-sdk-1.10.7.tgz#8b9a10ebf423e5c3bba5e0c9b8e3bdccc06bcf7a"
integrity sha512-aslaQd3rOhjf/e1Lnep2ut98LkxkV6JtzKi5K7JXCvip3bG9smmR6FWy8cNFvs37KZjKByZTXwqtC3rw1p2kzg==
"@masa-finance/masa-sdk@^1.11.0":
version "1.11.0"
resolved "https://registry.yarnpkg.com/@masa-finance/masa-sdk/-/masa-sdk-1.11.0.tgz#c4c0ac6ae40571e5444aeca33f4bc8695856c4e0"
integrity sha512-IkDS27rRFaaGOeId3Dj8pS2iYgbgsSxLtOZ26d1qxXsd4SozGb/jhSztl6Ui4aDSF3b1sJW0DC1BTu/1TQarOQ==
dependencies:
"@masa-finance/masa-contracts-identity" "^1.4.0"
"@masa-finance/masa-token" "^1.0.0"
Expand Down

0 comments on commit 51bac11

Please sign in to comment.