Skip to content

Commit

Permalink
fix: filter correct content types for brc20 (#323)
Browse files Browse the repository at this point in the history
* fix: filter correct content types for brc20

* fix: filter correct content types for brc20
  • Loading branch information
rafaelcr committed Mar 7, 2024
1 parent 5987646 commit 4d52b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pg/brc20/brc20-pg-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
DbPaginatedResult,
InscriptionEventData,
LocationData,
InscriptionRevealData,
} from '../types';
import {
BRC20_DEPLOYS_COLUMNS,
Expand Down Expand Up @@ -50,7 +49,8 @@ export class Brc20PgStore extends BasePgStoreModule {
if (
reveal.inscription.classic_number < 0 ||
reveal.inscription.number < 0 ||
reveal.location.transfer_type != DbLocationTransferType.transferred
reveal.location.transfer_type != DbLocationTransferType.transferred ||
!['text/plain', 'application/json'].includes(reveal.inscription.mime_type)
)
continue;
const brc20 = brc20FromInscriptionContent(
Expand Down

0 comments on commit 4d52b48

Please sign in to comment.