Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: MarcoMandar <[email protected]>
  • Loading branch information
MarcoMandar committed Nov 4, 2024
1 parent fe0410e commit 7e85609
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/src/actions/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ async function getTokensInWallet(runtime: IAgentRuntime) {
new Connection("https://api.mainnet-beta.solana.com"),
new PublicKey(runtime.getSetting("WALLET_PUBLIC_KEY"))
);

const walletInfo = await walletProvider.fetchPortfolioValue(runtime);
const items = walletInfo.items;
return items;
Expand Down
3 changes: 2 additions & 1 deletion core/src/providers/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const PROVIDER_CONFIG = {

interface Item {
name: string;
address: string;
symbol: string;
decimals: number;
balance: string;
Expand Down Expand Up @@ -48,7 +49,7 @@ interface Prices {
ethereum: { usd: string };
}

class WalletProvider {
export class WalletProvider {
constructor(
private connection: Connection,
private walletPublicKey: PublicKey
Expand Down

0 comments on commit 7e85609

Please sign in to comment.