File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Assets/Thirdweb/Core/Scripts Expand file tree Collapse file tree 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()
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 }
Original file line number Diff line number Diff 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 > ( ) ;
You can’t perform that action at this time.
0 commit comments