Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
(session): Calrify with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abishekk92 committed Apr 4, 2023
1 parent 06cf234 commit 14ebdba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions programs/gpl_session/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ pub struct Instruction<'info> {
pub user: Account<'info, User>,

#[session(
signer = authority,
// The ephemeral keypair signing the transaction
signer = signer,
// The authority of the user account which must have created the session
authority = user.authority.key()
)]
// Session Tokens are passed as optional accounts
pub session_token: Option<Account<'info, SessionToken>>,

#[account(mut)]
pub authority: Signer<'info>,
pub signer: Signer<'info>,
.....
}
```
Expand Down

0 comments on commit 14ebdba

Please sign in to comment.