Skip to content

PoX error code mapping shifted #4

@jannik-stacks

Description

@jannik-stacks

PoX error code mapping is wrong — verified against the canonical pox-4 contract

We compared the POX4_ERRORS map in this SDK against the actual pox-4.clar source in stacks-core. The SDK's mapping is wrong for 12 out of 13 codes from 19 onward. When a stacking tx fails, users are seeing the wrong error message.

Also checked @stacks/stacking is missing the new signer-related codes 32–40.

Looks like the SDK mapping is shifted. Maybe generated from increasing ints, but missing an error case.

Relevant code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions