diff --git a/Packages/Solana.Unity.SessionKeys.dll b/Packages/Solana.Unity.SessionKeys.dll index 2b73027f..3127a041 100644 Binary files a/Packages/Solana.Unity.SessionKeys.dll and b/Packages/Solana.Unity.SessionKeys.dll differ diff --git a/Runtime/codebase/SessionWallet.cs b/Runtime/codebase/SessionWallet.cs index 42436ab0..83d75ed8 100644 --- a/Runtime/codebase/SessionWallet.cs +++ b/Runtime/codebase/SessionWallet.cs @@ -130,8 +130,9 @@ public static async Task GetSessionWallet(PublicKey targetProgram /// /// Whether to top up the session token account with SOL. /// The validity period of the session token account, in seconds. + /// The lamports to topup /// A transaction instruction to create a new session token account. - public TransactionInstruction CreateSessionIX(bool topUp, long sessionValidity) + public TransactionInstruction CreateSessionIX(bool topUp, long sessionValidity, ulong? topUpLamports = null) { CreateSessionAccounts createSessionAccounts = new CreateSessionAccounts() { @@ -145,7 +146,8 @@ public TransactionInstruction CreateSessionIX(bool topUp, long sessionValidity) return GplSessionProgram.CreateSession( createSessionAccounts, topUp: topUp, - validUntil: sessionValidity + validUntil: sessionValidity, + lamports: topUpLamports ); }