Skip to content

Commit

Permalink
fix: remove undefined function, add lint to plugin-tee
Browse files Browse the repository at this point in the history
  • Loading branch information
HashWarlock committed Dec 10, 2024
1 parent 1115c68 commit 24284fa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-solana/src/actions/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Respond with a JSON markdown block containing only the extracted values. Use nul

// get all the tokens in the wallet using the wallet provider
async function getTokensInWallet(runtime: IAgentRuntime) {
const publicKey = await getPublicKey(runtime);
const { publicKey } = await getWalletKey(runtime, false);
const walletProvider = new WalletProvider(
new Connection("https://api.mainnet-beta.solana.com"),
publicKey
Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-tee/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import eslintGlobalConfig from "../../eslint.config.mjs";

export default [...eslintGlobalConfig];
3 changes: 2 additions & 1 deletion packages/plugin-tee/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
},
"scripts": {
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch"
"dev": "tsup --format esm --dts --watch",
"lint": "eslint . --fix"
},
"peerDependencies": {
"whatwg-url": "7.1.0"
Expand Down
3 changes: 0 additions & 3 deletions packages/plugin-tee/src/providers/deriveKeyProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ const deriveKeyProvider: Provider = {
return "";
}

let keypair: Keypair;
try {
const secretSalt =
runtime.getSetting("WALLET_SECRET_SALT") || "secret_salt";
Expand All @@ -181,8 +180,6 @@ const deriveKeyProvider: Provider = {
console.error("Error creating PublicKey:", error);
return "";
}

return keypair;
} catch (error) {
console.error("Error in derive key provider:", error.message);
return `Failed to fetch derive key information: ${error instanceof Error ? error.message : "Unknown error"}`;
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-tee/src/providers/walletProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ interface WalletPortfolio {
items: Array<Item>;
}

interface BirdEyePriceData {
interface _BirdEyePriceData {
data: {
[key: string]: {
price: number;
Expand Down

0 comments on commit 24284fa

Please sign in to comment.