Skip to content

Commit

Permalink
fix: also remove null bytes in blessed inscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Nov 20, 2023
1 parent d79d6e2 commit 7e8d412
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pg/pg-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,15 @@ export class PgStore extends BasePgStore {
const satoshi = new OrdinalSatoshi(reveal.ordinal_number);
const satpoint = parseSatPoint(reveal.satpoint_post_inscription);
const recursive_refs = getInscriptionRecursion(reveal.content_bytes);
const contentType = removeNullBytes(reveal.content_type);
writes.push({
inscription: {
genesis_id: reveal.inscription_id,
mime_type: reveal.content_type.split(';')[0],
content_type: reveal.content_type,
mime_type: contentType.split(';')[0],
content_type: contentType,
content_length: reveal.content_length,
number: reveal.inscription_number,
content: reveal.content_bytes,
content: removeNullBytes(reveal.content_bytes),
fee: reveal.inscription_fee.toString(),
curse_type: null,
sat_ordinal: reveal.ordinal_number.toString(),
Expand Down

0 comments on commit 7e8d412

Please sign in to comment.