Skip to content

checkPccBurned is incorrectly named #268

@shrugs

Description

@shrugs

it checks for UNSET [i.e. NOT 'burnt'] fuse. remember that in the context of the NameWrapper, a SET fuse is a BURNT fuse.

https://github.com/ensdomains/ensjs/blob/main/packages/ensjs/src/utils/fuses.ts#L384-L385

export const checkPccBurned = (fuses: bigint) =>
  (fuses & ParentFuses.PARENT_CANNOT_CONTROL) === 0n

this should instead be

export const checkPccBurned = (fuses: bigint) =>
  (fuses & ParentFuses.PARENT_CANNOT_CONTROL) === ParentFuses.PARENT_CANNOT_CONTROL

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