File tree 2 files changed +8
-2
lines changed
Assets/Thirdweb/Core/Scripts
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,10 @@ private async Task<string> Send()
317
317
}
318
318
else
319
319
{
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
+ )
321
324
{
322
325
return await ThirdwebManager . Instance . SDK . session . Web3 . Eth . TransactionManager . SendTransactionAsync ( Input ) ;
323
326
}
Original file line number Diff line number Diff line change @@ -74,7 +74,10 @@ public static async Task<TransactionReceipt> ThirdwebWriteRawResult<TWFunction>(
74
74
75
75
if ( ! isGasless )
76
76
{
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
+ )
78
81
{
79
82
var web3 = await ThirdwebManager . Instance . SDK . session . ActiveWallet . GetSignerWeb3 ( ) ;
80
83
var transactionHandler = web3 . Eth . GetContractTransactionHandler < TWFunction > ( ) ;
You can’t perform that action at this time.
0 commit comments