Skip to content

Commit

Permalink
⬆️ Upgrade session-keys dll
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Jan 6, 2025
1 parent 8b35d38 commit e49e6ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Binary file modified Packages/Solana.Unity.SessionKeys.dll
Binary file not shown.
6 changes: 4 additions & 2 deletions Runtime/codebase/SessionWallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ public static async Task<SessionWallet> GetSessionWallet(PublicKey targetProgram
/// </summary>
/// <param name="topUp">Whether to top up the session token account with SOL.</param>
/// <param name="sessionValidity">The validity period of the session token account, in seconds.</param>
/// <param name="sessionValidity">The lamports to topup</param>
/// <returns>A transaction instruction to create a new session token account.</returns>
public TransactionInstruction CreateSessionIX(bool topUp, long sessionValidity)
public TransactionInstruction CreateSessionIX(bool topUp, long sessionValidity, ulong? topUpLamports = null)
{
CreateSessionAccounts createSessionAccounts = new CreateSessionAccounts()
{
Expand All @@ -145,7 +146,8 @@ public TransactionInstruction CreateSessionIX(bool topUp, long sessionValidity)
return GplSessionProgram.CreateSession(
createSessionAccounts,
topUp: topUp,
validUntil: sessionValidity
validUntil: sessionValidity,
lamports: topUpLamports
);
}

Expand Down

0 comments on commit e49e6ab

Please sign in to comment.