Skip to content

Commit

Permalink
bump marketplace-sdk dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Jipperism committed Jan 15, 2024
1 parent 05e6416 commit 58a9c80
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions hooks/useGetAuthenticatedClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useToast } from "@chakra-ui/react";
import { useAddress } from "@/hooks/useAddress";
import { useRouter } from "next/router";

export const fetchNonce = async (address: string) => {
export const fetchAuthNonce = async (address: string) => {
const res = await fetch("/api/auth/nonce", {
method: "POST",
headers: {
Expand Down Expand Up @@ -46,7 +46,7 @@ export const useGetAuthenticatedClient = () => {
let nonce: string | undefined;

try {
nonce = await fetchNonce(address);
nonce = await fetchAuthNonce(address);
} catch (e) {
console.error("Error requesting nonce", e);
toast({
Expand Down
4 changes: 2 additions & 2 deletions hooks/useRegisterUser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useAddress } from "@/hooks/useAddress";
import { useMutation, useSignMessage } from "wagmi";
import {
fetchNonce,
fetchAuthNonce,
readableMessageToSign,
} from "@/hooks/useGetAuthenticatedClient";
import { useToast } from "@chakra-ui/react";
Expand Down Expand Up @@ -40,7 +40,7 @@ export const useRegisterUser = () => {
let nonce: string | undefined;

try {
nonce = await fetchNonce(address);
nonce = await fetchAuthNonce(address);
} catch (e) {
console.error("Error requesting nonce", e);
toast({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@hypercerts-org/contracts": "1.0.0-alpha.6",
"@hypercerts-org/marketplace-sdk": "^0.0.9",
"@hypercerts-org/marketplace-sdk": "^0.0.10",
"@hypercerts-org/sdk": "^1.0.0-alpha.9",
"@plasmicapp/cli": "^0.1.307",
"@plasmicapp/loader-nextjs": "^1.0.309",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2527,10 +2527,10 @@
dependencies:
hardhat "^2.18.3"

"@hypercerts-org/marketplace-sdk@^0.0.9":
version "0.0.9"
resolved "https://registry.yarnpkg.com/@hypercerts-org/marketplace-sdk/-/marketplace-sdk-0.0.9.tgz#0cc2aa342545039cac7d2589fbc3175f954ec9a6"
integrity sha512-inB/S5/TboyWEUepzffFJsyXZ3WxmEjsW1STAxXeeMJhkG2tmIMGomEMZ6CkZ2yaNRNivug46/vFvRnLCu2gBQ==
"@hypercerts-org/marketplace-sdk@^0.0.10":
version "0.0.10"
resolved "https://registry.yarnpkg.com/@hypercerts-org/marketplace-sdk/-/marketplace-sdk-0.0.10.tgz#4ebe6586fc93be6729951aa112a3d2a752b717b3"
integrity sha512-FYrv6NGuQsR/jRd17isYuhD0sJ1B5Tbd68RESTKPjm29dC4WVyIwNNtQcVGNlok3rTy7NjNLYKDyzj+NkFFSYg==
dependencies:
"@hypercerts-org/sdk" "^1.0.3"
"@supabase/supabase-js" "^2.39.2"
Expand Down

0 comments on commit 58a9c80

Please sign in to comment.