Skip to content

Is the ProgramAllowList working as intended? #251

@obumnwabude

Description

@obumnwabude

I created a collection with the Royalties Plugin and added the AllowProgramList in the ruleSet. However, the call fails on-chain with reject against line 128, just below the lines I linked. On continuous debugging, I cycled here and found out that the if condition expects the new_owner to be in the AllowProgramList. But the new owner is not a program. Infact, there will be multiple new owners in different places. Or does new owner mean something else here? Kindly look into this or what was the intended behavior? And is authority_info validly the calling program?

if allow_list.contains(ctx.authority_info.owner)
&& allow_list.contains(new_owner.owner)

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