Skip to content

Smart wallet session key auto-creation doesn't take into account permissions when skipping #6203

@alecananian

Description

@alecananian

I'd like to take advantage of the new sessionKey options in smart wallet creation params from #6194, but the current implementation that checks for an existing key only checks for an active signer, rather than confirming the full permissions scope. If the current session supports approvedTargets: [ContractA], but I request approvedTargets: [ContractA, ContractB] on a subsequent connection, the request will be skipped and the session will be missing ContractB approval. The same is true for mismatched nativeTokenLimitPerTransaction values.

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