Skip to content

Commit 7e85609

Browse files
committed
fix
Signed-off-by: MarcoMandar <malicemandar@gmail.com>
1 parent fe0410e commit 7e85609

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/src/actions/swap.ts

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ async function getTokensInWallet(runtime: IAgentRuntime) {
148148
new Connection("https://api.mainnet-beta.solana.com"),
149149
new PublicKey(runtime.getSetting("WALLET_PUBLIC_KEY"))
150150
);
151+
151152
const walletInfo = await walletProvider.fetchPortfolioValue(runtime);
152153
const items = walletInfo.items;
153154
return items;

core/src/providers/wallet.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const PROVIDER_CONFIG = {
1818

1919
interface Item {
2020
name: string;
21+
address: string;
2122
symbol: string;
2223
decimals: number;
2324
balance: string;
@@ -48,7 +49,7 @@ interface Prices {
4849
ethereum: { usd: string };
4950
}
5051

51-
class WalletProvider {
52+
export class WalletProvider {
5253
constructor(
5354
private connection: Connection,
5455
private walletPublicKey: PublicKey

0 commit comments

Comments
 (0)