Skip to content

Commit

Permalink
chore: migrate to registerDomainNameV2
Browse files Browse the repository at this point in the history
  • Loading branch information
dr497 committed May 13, 2024
1 parent fcb1dc1 commit 8e40ec1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/screens/Cart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8e40ec1

Please sign in to comment.