File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ async function getTokensInWallet(runtime: IAgentRuntime) {
148
148
new Connection ( "https://api.mainnet-beta.solana.com" ) ,
149
149
new PublicKey ( runtime . getSetting ( "WALLET_PUBLIC_KEY" ) )
150
150
) ;
151
+
151
152
const walletInfo = await walletProvider . fetchPortfolioValue ( runtime ) ;
152
153
const items = walletInfo . items ;
153
154
return items ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const PROVIDER_CONFIG = {
18
18
19
19
interface Item {
20
20
name : string ;
21
+ address : string ;
21
22
symbol : string ;
22
23
decimals : number ;
23
24
balance : string ;
@@ -48,7 +49,7 @@ interface Prices {
48
49
ethereum : { usd : string } ;
49
50
}
50
51
51
- class WalletProvider {
52
+ export class WalletProvider {
52
53
constructor (
53
54
private connection : Connection ,
54
55
private walletPublicKey : PublicKey
You can’t perform that action at this time.
0 commit comments