diff --git a/package-lock.json b/package-lock.json index f5ad201..f109a7c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,12 +9,12 @@ "version": "1.0.2", "dependencies": { "@adraffy/ens-normalize": "1.9.0", - "@bonfida/name-offers": "0.2.1", + "@bonfida/name-offers": "0.2.2", "@bonfida/name-tokenizer": "0.1.0", "@bonfida/sns-emitter": "0.2.1", "@bonfida/sns-react": "2.1.0", "@bonfida/sns-records": "0.0.1", - "@bonfida/spl-name-service": "2.3.5", + "@bonfida/spl-name-service": "2.5.0", "@coral-xyz/common-public": "0.2.0-latest.3375", "@expo-google-fonts/dev": "*", "@expo/html-elements": "0.5.1", @@ -2179,9 +2179,9 @@ } }, "node_modules/@bonfida/name-offers": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@bonfida/name-offers/-/name-offers-0.2.1.tgz", - "integrity": "sha512-zqph1ycpATLKzpG9/N2F8szBBj1ilWlyz/eaTLX/gJFiijVu5LeO987DclDkkypV4Elz1xcWGjlxdWh1GmIisA==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@bonfida/name-offers/-/name-offers-0.2.2.tgz", + "integrity": "sha512-rNB4hd6AxutHvkbmpK3FlzFFxJr7hDPKM1YFR4G2p59Fgw9Kin2qkwna/5hnREU5wcfBJTPJqhYze5xUfbqvDQ==", "dependencies": { "@bonfida/utils": "0.0.7", "borsh": "^2.0.0", @@ -2452,9 +2452,9 @@ } }, "node_modules/@bonfida/spl-name-service": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@bonfida/spl-name-service/-/spl-name-service-2.3.5.tgz", - "integrity": "sha512-JnHbTfkWagbn8gDEW/C4+OkInf4lCg1M/hWufwoe9m/n3gS9Yueh05qPve/Fhtf2oQmEIMWQDzZ8zoN1HtUEcw==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@bonfida/spl-name-service/-/spl-name-service-2.5.0.tgz", + "integrity": "sha512-fT7gicgps+JYZfmWOXxDAHxe+FPkQRPhsYGM0qT0nPrFiEd7A3noYcPJsOKaoaZdNBV/hTqhSYnWkYkhxa5YUQ==", "dependencies": { "@bonfida/sns-records": "0.0.1", "@noble/curves": "^1.3.0", diff --git a/package.json b/package.json index de803b8..3013b3f 100644 --- a/package.json +++ b/package.json @@ -25,12 +25,12 @@ "main": "./src/App", "dependencies": { "@adraffy/ens-normalize": "1.9.0", - "@bonfida/name-offers": "0.2.1", + "@bonfida/name-offers": "0.2.2", "@bonfida/name-tokenizer": "0.1.0", "@bonfida/sns-emitter": "0.2.1", "@bonfida/sns-react": "2.1.0", "@bonfida/sns-records": "0.0.1", - "@bonfida/spl-name-service": "2.3.5", + "@bonfida/spl-name-service": "2.5.0", "@coral-xyz/common-public": "0.2.0-latest.3375", "@expo-google-fonts/dev": "*", "@expo/html-elements": "0.5.1", diff --git a/src/screens/Cart/index.tsx b/src/screens/Cart/index.tsx index bb86177..67e103a 100644 --- a/src/screens/Cart/index.tsx +++ b/src/screens/Cart/index.tsx @@ -13,7 +13,7 @@ import { useModal } from "react-native-modalfy"; import { Trans, t } from "@lingui/macro"; import { isMobile } from "@src/utils/platform"; import { Feather, MaterialIcons } from "@expo/vector-icons"; -import { REFERRERS, registerDomainName } from "@bonfida/spl-name-service"; +import { REFERRERS, registerDomainNameV2 } from "@bonfida/spl-name-service"; import { NATIVE_MINT, getAssociatedTokenAddressSync } from "@solana/spl-token"; import { Connection, @@ -133,7 +133,7 @@ export const Cart = () => { const ata = getAssociatedTokenAddressSync(mintKey, buyer); for (let d of cart) { - const [, ix] = await registerDomainName( + const ix = await registerDomainNameV2( connection, d, map.get(d) || DEFAULT_SPACE,