Skip to content

Commit

Permalink
Merge pull request #304 from fukaoi/hotfix/notfound-instructions-solf…
Browse files Browse the repository at this point in the history
…lare

Hotfix/notfound instructions solflare
  • Loading branch information
fukaoi authored Oct 22, 2024
2 parents 137fd92 + 6ea835d commit 33f6f73
Show file tree
Hide file tree
Showing 3 changed files with 1,678 additions and 1,931 deletions.
8 changes: 7 additions & 1 deletion app/utils/mint-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ import {
TokenStandard,
} from "@metaplex-foundation/mpl-token-metadata";
import { createUmi } from "@metaplex-foundation/umi-bundle-defaults";
import { findAssociatedTokenPda } from "@metaplex-foundation/mpl-toolbox";
import {
findAssociatedTokenPda,
setComputeUnitLimit,
setComputeUnitPrice,
} from "@metaplex-foundation/mpl-toolbox";
import { fetchClusterApiUrl, SPL_TOKEN_2022_PROGRAM_ID } from "~/utils//config";
import type { TokenMetadata } from "~/types";
import { irysUploader } from "@metaplex-foundation/umi-uploader-irys";
Expand Down Expand Up @@ -71,6 +75,8 @@ export const mintToken = async (
callbackHandle?.("Minting SPL Token");

const transaction = transactionBuilder()
.add(setComputeUnitLimit(umi, { units: 80000 }))
.add(setComputeUnitPrice(umi, { microLamports: 50000 }))
.add(
createV1(umi, {
mint,
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,41 +25,41 @@
"@mui/base": "5.0.0-beta.59",
"@mui/icons-material": "^5.16.7",
"@mui/material": "^5.16.7",
"@mui/system": "^6.1.3",
"@mui/system": "^6.1.4",
"@remix-run/node": "^2.13.1",
"@remix-run/react": "^2.13.1",
"@remix-run/serve": "^2.13.1",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/wallet-adapter-react-ui": "^0.9.35",
"@solana/wallet-adapter-wallets": "^0.19.32",
"@solana/web3.js": "^1.95.3",
"@solana/web3.js": "^1.95.4",
"assert": "^2.1.0",
"base": "link:@mui/base",
"bs58": "^6.0.0",
"isbot": "^5.1.17",
"process": "^0.11.10",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.53.0"
"react-hook-form": "^7.53.1"
},
"devDependencies": {
"@emotion/cache": "^11.13.1",
"@emotion/react": "^11.13.3",
"@hookform/devtools": "^4.3.1",
"@remix-run/dev": "^2.12.1",
"@remix-run/dev": "^2.13.1",
"@types/bs58": "^4.0.4",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"sirv-cli": "^3.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.8",
"vite": "^5.4.9",
"vite-plugin-cjs-interop": "^2.1.4",
"vite-plugin-node-polyfills": "^0.22.0",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.1.2"
"vitest": "^2.1.3"
},
"engines": {
"node": ">=20.0.0"
Expand Down
Loading

0 comments on commit 33f6f73

Please sign in to comment.