Skip to content

Commit ea6e09e

Browse files
committed
Add delegationContractAddress to InAppWallet constructor
Updated the InAppWallet constructor and related method to accept and pass delegationContractAddress, ensuring compatibility with changes in the base EcosystemWallet class.
1 parent 3dd8b5c commit ea6e09e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Thirdweb/Thirdweb.Wallets/InAppWallet/InAppWallet.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ internal InAppWallet(
2020
string address,
2121
string legacyEncryptionKey,
2222
string walletSecret,
23-
ExecutionMode executionMode
23+
ExecutionMode executionMode,
24+
string delegationContractAddress
2425
)
25-
: base(null, null, client, embeddedWallet, httpClient, email, phoneNumber, authProvider, siweSigner, legacyEncryptionKey, walletSecret, executionMode)
26+
: base(null, null, client, embeddedWallet, httpClient, email, phoneNumber, authProvider, siweSigner, legacyEncryptionKey, walletSecret, executionMode, delegationContractAddress)
2627
{
2728
this.Address = address;
2829
}
@@ -68,7 +69,8 @@ public static async Task<InAppWallet> Create(
6869
ecoWallet.Address,
6970
ecoWallet.LegacyEncryptionKey,
7071
ecoWallet.WalletSecret,
71-
ecoWallet.ExecutionMode
72+
ecoWallet.ExecutionMode,
73+
ecoWallet.DelegationContractAddress
7274
);
7375
}
7476
}

0 commit comments

Comments
 (0)