Skip to content

fix(firo): parse OP_PUSHDATA1 OP_RETURN data#7

Merged
vorujack merged 3 commits into
rosen-bridge:devfrom
navidR:fix/navidr/parse_pushdata1
Jun 9, 2026
Merged

fix(firo): parse OP_PUSHDATA1 OP_RETURN data#7
vorujack merged 3 commits into
rosen-bridge:devfrom
navidR:fix/navidr/parse_pushdata1

Conversation

@navidR

@navidR navidR commented May 31, 2026

Copy link
Copy Markdown
Contributor

This PR fixes Firo Rosen data extraction for OP_RETURN outputs encoded with OP_PUSHDATA1. Previously the Firo parser only handled direct-push OP_RETURN scripts like 6a <len> <payload>, which failed for valid larger payloads encoded as 6a 4c <len> <payload>. The parser now detects both formats, validates the full script length correctly, and includes test coverage for the OP_PUSHDATA1 case.

@navidR navidR force-pushed the fix/navidr/parse_pushdata1 branch 3 times, most recently from 7e48bb2 to 3bcdbc5 Compare June 3, 2026 17:07
Comment thread packages/rosen-extractor/lib/getRosenData/firo/utils.ts Outdated
Comment thread packages/rosen-extractor/lib/getRosenData/firo/utils.ts
Comment thread packages/rosen-extractor/lib/getRosenData/firo/utils.ts Outdated
Comment thread packages/rosen-extractor/tests/getRosenData/firo/utils.spec.ts Outdated
Comment thread packages/rosen-extractor/tests/getRosenData/firo/utils.spec.ts Outdated
Comment thread packages/rosen-extractor/tests/getRosenData/firo/utilsTestData.ts Outdated
@navidR

navidR commented Jun 7, 2026

Copy link
Copy Markdown
Contributor Author

@RaaCT0R fixed all the comments.

@vorujack vorujack merged commit 37388e2 into rosen-bridge:dev Jun 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants