Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add validation
  • Loading branch information
0xFirekeeper committed Jun 23, 2025
commit f989fe0253880b5872175b282a412955d672b7fb
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,16 @@ public async Task<ThirdwebTransactionReceipt> CreateSessionKey(
throw new InvalidOperationException("CreateSessionKey is only supported for EIP7702 and EIP7702Sponsored execution modes.");
}

if (string.IsNullOrEmpty(signerAddress))
{
throw new ArgumentException("Signer address cannot be null or empty.", nameof(signerAddress));
}

if (durationInSeconds <= 0)
{
throw new ArgumentException("Duration must be greater than zero.", nameof(durationInSeconds));
}

var sessionKeyParams = new SessionSpec()
{
Signer = signerAddress,
Expand Down