File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
target_chains/aptos/sdk/js/src Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,9 @@ export class AptosPriceServiceConnection extends PriceServiceConnection {
1616 */
1717 async getPriceFeedsUpdateData ( priceIds : HexString [ ] ) : Promise < number [ ] [ ] > {
1818 // Fetch the latest price feeds from the price service
19- const priceFeeds : PriceFeed [ ] = await this . getLatestPriceFeeds ( priceIds ) ;
20- return priceFeeds
21- . map ( ( feed : PriceFeed ) => feed . getVAA ( ) )
22- . filter ( ( vaa : string | undefined ) : vaa is string => vaa !== undefined )
23- . map ( ( vaa : string ) => Array . from ( Buffer . from ( vaa , "base64" ) ) ) ;
19+ // Use getLatestVaas directly since we only need the VAAs
20+ const vaas = await this . getLatestVaas ( priceIds ) ;
21+ return vaas . map ( ( vaa : string ) => Array . from ( Buffer . from ( vaa , "base64" ) ) ) ;
2422 }
2523
2624 /**
You can’t perform that action at this time.
0 commit comments