Skip to content

Commit 50498fb

Browse files
authored
Merge pull request #1073 from ai16z/fix/swap_solana
chore: commented out unused variables in solana swap action's plugin
2 parents 451ca90 + b8966cf commit 50498fb

File tree

1 file changed

+2
-3
lines changed
  • packages/plugin-solana/src/actions

1 file changed

+2
-3
lines changed

packages/plugin-solana/src/actions/swap.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ export const executeSwap: Action = {
205205
});
206206

207207
console.log("Response:", response);
208-
const type =
209-
response.inputTokenSymbol?.toUpperCase() === "SOL" ? "buy" : "sell";
208+
// const type = response.inputTokenSymbol?.toUpperCase() === "SOL" ? "buy" : "sell";
210209

211210
// Add SOL handling logic
212211
if (response.inputTokenSymbol?.toUpperCase() === "SOL") {
@@ -287,7 +286,7 @@ export const executeSwap: Action = {
287286
false
288287
);
289288

290-
const provider = new WalletProvider(connection, walletPublicKey);
289+
// const provider = new WalletProvider(connection, walletPublicKey);
291290

292291
console.log("Wallet Public Key:", walletPublicKey);
293292
console.log("inputTokenSymbol:", response.inputTokenCA);

0 commit comments

Comments
 (0)