We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6388ff4 commit f989fe0Copy full SHA for f989fe0
Thirdweb/Thirdweb.Wallets/InAppWallet/EcosystemWallet/EcosystemWallet.cs
@@ -465,6 +465,16 @@ public async Task<ThirdwebTransactionReceipt> CreateSessionKey(
465
throw new InvalidOperationException("CreateSessionKey is only supported for EIP7702 and EIP7702Sponsored execution modes.");
466
}
467
468
+ if (string.IsNullOrEmpty(signerAddress))
469
+ {
470
+ throw new ArgumentException("Signer address cannot be null or empty.", nameof(signerAddress));
471
+ }
472
+
473
+ if (durationInSeconds <= 0)
474
475
+ throw new ArgumentException("Duration must be greater than zero.", nameof(durationInSeconds));
476
477
478
var sessionKeyParams = new SessionSpec()
479
{
480
Signer = signerAddress,
0 commit comments