Skip to content

Commit

Permalink
patch via pnpm (elizaOS#2901)
Browse files Browse the repository at this point in the history
Co-authored-by: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com>
  • Loading branch information
wtfsayo and shakkernerd authored Jan 28, 2025
1 parent 60c2f30 commit 4773059
Show file tree
Hide file tree
Showing 3 changed files with 492 additions and 493 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
"cookie": "0.7.0",
"bs58": "5.0.0",
"@coral-xyz/anchor": "0.28.0"
},
"patchedDependencies": {
"@solana-developers/helpers": "patches/@solana-developers__helpers.patch"
}
},
"engines": {
Expand All @@ -71,13 +74,13 @@
"@injectivelabs/sdk-ts": "^1.14.33",
"@vitest/eslint-plugin": "1.0.1",
"amqplib": "0.10.5",
"bs58": "4.0.0",
"csv-parse": "5.6.0",
"langdetect": "^0.2.1",
"ollama-ai-provider": "0.16.1",
"optional": "0.1.4",
"pnpm": "9.15.0",
"sharp": "0.33.5",
"bs58": "4.0.0"
"sharp": "0.33.5"
},
"packageManager": "pnpm@9.15.0",
"workspaces": [
Expand Down
13 changes: 13 additions & 0 deletions patches/@solana-developers__helpers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/esm/lib/transaction.js b/dist/esm/lib/transaction.js
index c86ccd726fb0bef6e82cd37a6d7c7fc9edef8344..0ec2bfe2463e998b5ad68b618f4d216fec28a0f7 100644
--- a/dist/esm/lib/transaction.js
+++ b/dist/esm/lib/transaction.js
@@ -1,6 +1,7 @@
import { ComputeBudgetProgram, PublicKey, TransactionMessage, VersionedTransaction, } from "@solana/web3.js";
import { getErrorFromRPCResponse } from "./logs.js";
-import { Program, AnchorProvider, EventParser, BorshAccountsCoder, BorshInstructionCoder, BN, } from "@coral-xyz/anchor";
+import pkg from '@coral-xyz/anchor';
+const { Program, AnchorProvider, EventParser, BorshAccountsCoder, BorshInstructionCoder, BN, } = pkg;
import * as fs from "fs";
import * as path from "path";
export const confirmTransaction = async (connection, signature, commitment = "confirmed") => {
Loading

0 comments on commit 4773059

Please sign in to comment.