Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6865871

Browse files
committedMay 7, 2025··
Integrate new ExecutionMode IAW/EW option
1 parent f00c827 commit 6865871

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed
 

‎Assets/Thirdweb/Runtime/Unity/ThirdwebManagerBase.cs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public InAppWalletOptions(
3131
IThirdwebWallet siweSigner = null,
3232
string legacyEncryptionKey = null,
3333
string walletSecret = null,
34-
List<string> forceSiweExternalWalletIds = null
34+
List<string> forceSiweExternalWalletIds = null,
35+
ExecutionMode executionMode = ExecutionMode.EOA
3536
)
3637
: base(
3738
email: email,
@@ -42,7 +43,8 @@ public InAppWalletOptions(
4243
siweSigner: siweSigner,
4344
legacyEncryptionKey: legacyEncryptionKey,
4445
walletSecret: walletSecret,
45-
forceSiweExternalWalletIds: forceSiweExternalWalletIds
46+
forceSiweExternalWalletIds: forceSiweExternalWalletIds,
47+
executionMode: executionMode
4648
) { }
4749
}
4850

@@ -82,6 +84,9 @@ public class EcosystemWalletOptions
8284
[JsonProperty("forceSiweExternalWalletIds")]
8385
public List<string> ForceSiweExternalWalletIds;
8486

87+
[JsonProperty("executionMode")]
88+
public ExecutionMode ExecutionMode = ExecutionMode.EOA;
89+
8590
public EcosystemWalletOptions(
8691
string ecosystemId = null,
8792
string ecosystemPartnerId = null,
@@ -93,7 +98,8 @@ public EcosystemWalletOptions(
9398
IThirdwebWallet siweSigner = null,
9499
string legacyEncryptionKey = null,
95100
string walletSecret = null,
96-
List<string> forceSiweExternalWalletIds = null
101+
List<string> forceSiweExternalWalletIds = null,
102+
ExecutionMode executionMode = ExecutionMode.EOA
97103
)
98104
{
99105
EcosystemId = ecosystemId;
@@ -107,6 +113,7 @@ public EcosystemWalletOptions(
107113
LegacyEncryptionKey = legacyEncryptionKey;
108114
WalletSecret = walletSecret;
109115
ForceSiweExternalWalletIds = forceSiweExternalWalletIds;
116+
ExecutionMode = executionMode;
110117
}
111118
}
112119

@@ -376,7 +383,8 @@ public virtual async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOpt
376383
storageDirectoryPath: walletOptions.InAppWalletOptions.StorageDirectoryPath,
377384
siweSigner: walletOptions.InAppWalletOptions.SiweSigner,
378385
legacyEncryptionKey: walletOptions.InAppWalletOptions.LegacyEncryptionKey,
379-
walletSecret: walletOptions.InAppWalletOptions.WalletSecret
386+
walletSecret: walletOptions.InAppWalletOptions.WalletSecret,
387+
executionMode: walletOptions.InAppWalletOptions.ExecutionMode
380388
);
381389
break;
382390

@@ -399,7 +407,8 @@ public virtual async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOpt
399407
storageDirectoryPath: walletOptions.EcosystemWalletOptions.StorageDirectoryPath,
400408
siweSigner: walletOptions.EcosystemWalletOptions.SiweSigner,
401409
legacyEncryptionKey: walletOptions.EcosystemWalletOptions.LegacyEncryptionKey,
402-
walletSecret: walletOptions.EcosystemWalletOptions.WalletSecret
410+
walletSecret: walletOptions.EcosystemWalletOptions.WalletSecret,
411+
executionMode: walletOptions.EcosystemWalletOptions.ExecutionMode
403412
);
404413
break;
405414

0 commit comments

Comments
 (0)
Please sign in to comment.