Skip to content

[BUG] PushDrop Data First #26

Description

@sirdeggen

Migrated from bsv-blockchain/ts-sdk#259

Bug Description

PushDrop.parse doesn't support the data first option of push drop scripts because it always expects the first push to be the locking pubkey.

Steps to Reproduce

Make a push drop token with lockPosition set to 'after'

Expected Behavior

We should add a parameter for lockPosition.

Actual Behavior

It will always fail because field data is interpreted as a pubkey and fails the DER check.

Error: Unknown point format
    at _Point.fromDER

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions