Skip to content

Commit 9c27d44

Browse files
committedJun 28, 2023
Go through client if smart wallet
1 parent 8434e9c commit 9c27d44

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
 

‎Assets/Thirdweb/Core/Scripts/Transaction.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,10 @@ private async Task<string> Send()
317317
}
318318
else
319319
{
320-
if (ThirdwebManager.Instance.SDK.session.ActiveWallet.GetProvider() == WalletProvider.LocalWallet)
320+
if (
321+
ThirdwebManager.Instance.SDK.session.ActiveWallet.GetSignerProvider() == WalletProvider.LocalWallet
322+
&& ThirdwebManager.Instance.SDK.session.ActiveWallet.GetProvider() != WalletProvider.SmartWallet
323+
)
321324
{
322325
return await ThirdwebManager.Instance.SDK.session.Web3.Eth.TransactionManager.SendTransactionAsync(Input);
323326
}

‎Assets/Thirdweb/Core/Scripts/TransactionManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ public static async Task<TransactionReceipt> ThirdwebWriteRawResult<TWFunction>(
7474

7575
if (!isGasless)
7676
{
77-
if (ThirdwebManager.Instance.SDK.session.ActiveWallet.GetSignerProvider() == WalletProvider.LocalWallet)
77+
if (
78+
ThirdwebManager.Instance.SDK.session.ActiveWallet.GetSignerProvider() == WalletProvider.LocalWallet
79+
&& ThirdwebManager.Instance.SDK.session.ActiveWallet.GetProvider() != WalletProvider.SmartWallet
80+
)
7881
{
7982
var web3 = await ThirdwebManager.Instance.SDK.session.ActiveWallet.GetSignerWeb3();
8083
var transactionHandler = web3.Eth.GetContractTransactionHandler<TWFunction>();

0 commit comments

Comments
 (0)
Please sign in to comment.