Skip to content

Commit

Permalink
Merge pull request #1073 from ai16z/fix/swap_solana
Browse files Browse the repository at this point in the history
chore: commented out unused variables in solana swap action's plugin
  • Loading branch information
shakkernerd authored Dec 14, 2024
2 parents 451ca90 + b8966cf commit 50498fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/plugin-solana/src/actions/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ export const executeSwap: Action = {
});

console.log("Response:", response);
const type =
response.inputTokenSymbol?.toUpperCase() === "SOL" ? "buy" : "sell";
// const type = response.inputTokenSymbol?.toUpperCase() === "SOL" ? "buy" : "sell";

// Add SOL handling logic
if (response.inputTokenSymbol?.toUpperCase() === "SOL") {
Expand Down Expand Up @@ -287,7 +286,7 @@ export const executeSwap: Action = {
false
);

const provider = new WalletProvider(connection, walletPublicKey);
// const provider = new WalletProvider(connection, walletPublicKey);

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

0 comments on commit 50498fb

Please sign in to comment.