Skip to content

Q: is_trusted_relayer: why the current_account_id bypass? #5

@olga24912

Description

@olga24912

Default impl of is_trusted_relayer bypasses check for self-calls:

if *account_id == env::current_account_id() {
    return true;
}

This guard is meant for external API, not callbacks (#[private]). I couldn't find a case where this bypass is needed. What's the intended scenario? If none — worth removing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions