Skip to content

Commit e49e6ab

Browse files
committed
⬆️ Upgrade session-keys dll
1 parent 8b35d38 commit e49e6ab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
0 Bytes
Binary file not shown.

Runtime/codebase/SessionWallet.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ public static async Task<SessionWallet> GetSessionWallet(PublicKey targetProgram
130130
/// </summary>
131131
/// <param name="topUp">Whether to top up the session token account with SOL.</param>
132132
/// <param name="sessionValidity">The validity period of the session token account, in seconds.</param>
133+
/// <param name="sessionValidity">The lamports to topup</param>
133134
/// <returns>A transaction instruction to create a new session token account.</returns>
134-
public TransactionInstruction CreateSessionIX(bool topUp, long sessionValidity)
135+
public TransactionInstruction CreateSessionIX(bool topUp, long sessionValidity, ulong? topUpLamports = null)
135136
{
136137
CreateSessionAccounts createSessionAccounts = new CreateSessionAccounts()
137138
{
@@ -145,7 +146,8 @@ public TransactionInstruction CreateSessionIX(bool topUp, long sessionValidity)
145146
return GplSessionProgram.CreateSession(
146147
createSessionAccounts,
147148
topUp: topUp,
148-
validUntil: sessionValidity
149+
validUntil: sessionValidity,
150+
lamports: topUpLamports
149151
);
150152
}
151153

0 commit comments

Comments
 (0)