Skip to content

How to get owner identity in a module? #3220

@egormanga

Description

@egormanga

There doesn't seem to be an available way of retrieving the owner identity (e.g. for reducer caller checks) inside the module.

There's ctx.identity() which is the module identity, useful for self-calling checks — that is, scheduled reducers. But there's no equivalent ctx.owner for checking when the module owner calls the reducer (e.g. with the CLI).

Is there another way to check this, apart from hard-coding the value?

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