@@ -173,8 +173,8 @@ export class PgStoreV2 extends BasePgStoreModule {
173173 args . block . type === 'latest'
174174 ? sql `burn_block_hash = (SELECT burn_block_hash FROM blocks WHERE canonical = TRUE ORDER BY block_height DESC LIMIT 1)`
175175 : args . block . type === 'hash'
176- ? sql `burn_block_hash = ${ normalizeHashString ( args . block . hash ) } `
177- : sql `burn_block_height = ${ args . block . height } ` ;
176+ ? sql `burn_block_hash = ${ normalizeHashString ( args . block . hash ) } `
177+ : sql `burn_block_height = ${ args . block . height } ` ;
178178 const blockCheck = await sql `SELECT burn_block_hash FROM blocks WHERE ${ filter } LIMIT 1` ;
179179 if ( blockCheck . count === 0 )
180180 throw new InvalidRequestError (
@@ -218,11 +218,11 @@ export class PgStoreV2 extends BasePgStoreModule {
218218 args . type === 'latest'
219219 ? sql `index_block_hash = (SELECT index_block_hash FROM blocks WHERE canonical = TRUE ORDER BY block_height DESC LIMIT 1)`
220220 : args . type === 'hash'
221- ? sql `(
221+ ? sql `(
222222 block_hash = ${ normalizeHashString ( args . hash ) }
223223 OR index_block_hash = ${ normalizeHashString ( args . hash ) }
224224 )`
225- : sql `block_height = ${ args . height } ` ;
225+ : sql `block_height = ${ args . height } ` ;
226226 const blockQuery = await sql < BlockQueryResult [ ] > `
227227 SELECT ${ sql ( BLOCK_COLUMNS ) }
228228 FROM blocks
@@ -246,11 +246,11 @@ export class PgStoreV2 extends BasePgStoreModule {
246246 blockId . type === 'latest'
247247 ? sql `index_block_hash = (SELECT index_block_hash FROM blocks WHERE canonical = TRUE ORDER BY block_height DESC LIMIT 1)`
248248 : blockId . type === 'hash'
249- ? sql `(
249+ ? sql `(
250250 block_hash = ${ normalizeHashString ( blockId . hash ) }
251251 OR index_block_hash = ${ normalizeHashString ( blockId . hash ) }
252252 )`
253- : sql `block_height = ${ blockId . height } ` ;
253+ : sql `block_height = ${ blockId . height } ` ;
254254 const blockQuery = await sql < { signer_signatures : string [ ] ; total : number } [ ] > `
255255 SELECT
256256 signer_signatures[${ offset + 1 } :${ offset + limit } ] as signer_signatures,
@@ -344,11 +344,11 @@ export class PgStoreV2 extends BasePgStoreModule {
344344 args . block . type === 'latest'
345345 ? sql `canonical = TRUE ORDER BY block_height DESC`
346346 : args . block . type === 'hash'
347- ? sql `(
347+ ? sql `(
348348 block_hash = ${ normalizeHashString ( args . block . hash ) }
349349 OR index_block_hash = ${ normalizeHashString ( args . block . hash ) }
350350 ) AND canonical = TRUE`
351- : sql `block_height = ${ args . block . height } AND canonical = TRUE`
351+ : sql `block_height = ${ args . block . height } AND canonical = TRUE`
352352 }
353353 LIMIT 1
354354 ),
@@ -448,8 +448,8 @@ export class PgStoreV2 extends BasePgStoreModule {
448448 args . type === 'latest'
449449 ? sql `burn_block_hash = (SELECT burn_block_hash FROM blocks WHERE canonical = TRUE ORDER BY block_height DESC LIMIT 1)`
450450 : args . type === 'hash'
451- ? sql `burn_block_hash = ${ args . hash } `
452- : sql `burn_block_height = ${ args . height } ` ;
451+ ? sql `burn_block_hash = ${ args . hash } `
452+ : sql `burn_block_height = ${ args . height } ` ;
453453 const blockQuery = await sql < DbBurnBlock [ ] > `
454454 WITH BlocksWithPrevTime AS (
455455 SELECT
0 commit comments