@@ -165,7 +165,9 @@ export class PriceServiceConnection {
165165
166166 // Include VAA if binary flag is set
167167 if ( this . priceFeedRequestConfig . binary && response . data . binary ?. data ) {
168- const vaaIndex = response . data . parsed . findIndex ( ( p : any ) => p . id === item . id ) ;
168+ const vaaIndex = response . data . parsed . findIndex (
169+ ( p : any ) => p . id === item . id
170+ ) ;
169171 if ( vaaIndex >= 0 && vaaIndex < response . data . binary . data . length ) {
170172 priceFeedJson . vaa = response . data . binary . data [ vaaIndex ] ;
171173 }
@@ -208,7 +210,10 @@ export class PriceServiceConnection {
208210 } ) ;
209211
210212 // Extract VAAs from binary data array
211- if ( ! response . data . binary ?. data || ! Array . isArray ( response . data . binary . data ) ) {
213+ if (
214+ ! response . data . binary ?. data ||
215+ ! Array . isArray ( response . data . binary . data )
216+ ) {
212217 return [ ] ;
213218 }
214219
@@ -245,7 +250,9 @@ export class PriceServiceConnection {
245250
246251 // Extract VAA and publishTime from response
247252 if ( ! response . data . binary ?. data ?. [ 0 ] || ! response . data . parsed ?. [ 0 ] ) {
248- throw new Error ( "No VAA data found for the given price id and publish time" ) ;
253+ throw new Error (
254+ "No VAA data found for the given price id and publish time"
255+ ) ;
249256 }
250257
251258 const vaa = response . data . binary . data [ 0 ] ;
@@ -287,7 +294,9 @@ export class PriceServiceConnection {
287294
288295 // Extract price feed from response
289296 if ( ! response . data . parsed ?. [ 0 ] ) {
290- throw new Error ( "No price feed data found for the given price id and publish time" ) ;
297+ throw new Error (
298+ "No price feed data found for the given price id and publish time"
299+ ) ;
291300 }
292301
293302 const priceFeedJson : any = {
@@ -297,7 +306,10 @@ export class PriceServiceConnection {
297306 } ;
298307
299308 // Include metadata if verbose flag is set
300- if ( this . priceFeedRequestConfig . verbose && response . data . parsed [ 0 ] . metadata ) {
309+ if (
310+ this . priceFeedRequestConfig . verbose &&
311+ response . data . parsed [ 0 ] . metadata
312+ ) {
301313 priceFeedJson . metadata = response . data . parsed [ 0 ] . metadata ;
302314 }
303315
0 commit comments