Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-eastwood3 committed Dec 12, 2024
1 parent be28801 commit 9d32b7b
Show file tree
Hide file tree
Showing 3 changed files with 496 additions and 19 deletions.
15 changes: 12 additions & 3 deletions typescript/packages/plugins/solana-nfts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "@goat-sdk/plugin-solana-nfts",
"version": "0.1.1",
"files": ["dist/**/*", "README.md", "package.json"],
"files": [
"dist/**/*",
"README.md",
"package.json"
],
"scripts": {
"build": "tsup",
"clean": "rm -rf dist",
Expand All @@ -14,11 +18,12 @@
"dependencies": {
"@goat-sdk/core": "workspace:*",
"@metaplex-foundation/digital-asset-standard-api": "1.0.0",
"@metaplex-foundation/mpl-bubblegum": "3.1.0",
"@metaplex-foundation/mpl-bubblegum": "4.2.1",
"@metaplex-foundation/umi": "^0.9.2",
"@metaplex-foundation/umi-bundle-defaults": "0.9.2",
"@metaplex-foundation/umi-web3js-adapters": "0.8.10",
"@solana/web3.js": "catalog:",
"got": "5.6.0",
"viem": "catalog:",
"zod": "catalog:"
},
Expand All @@ -35,5 +40,9 @@
"bugs": {
"url": "https://github.com/goat-sdk/goat/issues"
},
"keywords": ["ai", "agents", "web3"]
"keywords": [
"ai",
"agents",
"web3"
]
}
4 changes: 3 additions & 1 deletion typescript/packages/plugins/solana-nfts/src/nfts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ const transferNFTMethod =
const { recipientAddress, assetId } = parameters;
const umi = createUmi(connection);
umi.use(mplBubblegum());
const assetWithProof = await getAssetWithProof(umi, fromWeb3JsPublicKey(new PublicKey(assetId)));
const assetWithProof = await getAssetWithProof(umi, fromWeb3JsPublicKey(new PublicKey(assetId)), {
truncateCanopy: true,
});
const instructions = transfer(umi, {
...assetWithProof,
leafOwner: fromWeb3JsPublicKey(new PublicKey(walletClient.getAddress())),
Expand Down
Loading

0 comments on commit 9d32b7b

Please sign in to comment.