File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Assets/Thirdweb/Core/Scripts Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ public static async Task<TransactionReceipt> ThirdwebWriteRawResult<TWFunction>(
6565 var gas = await gasEstimator . EstimateGasAsync ( contractAddress , functionMessage ) ;
6666 functionMessage . Gas = gas . Value < 100000 ? 100000 : gas . Value ;
6767 }
68- catch ( System . Exception e )
68+ catch ( System . InvalidOperationException e )
6969 {
70- Debug . LogWarning ( $ "Failed to estimate gas for transaction, proceeding with 100k gas: { e . Message } ") ;
70+ Debug . LogWarning ( $ "Failed to estimate gas for transaction, proceeding with 100k gas: { e } ") ;
7171 }
7272 }
7373
@@ -130,6 +130,7 @@ public static async Task<TransactionReceipt> ThirdwebWriteRawResult<TWFunction>(
130130 }
131131 else
132132 {
133+ Debug . Log ( "Relayer Response: " + req . downloadHandler . text ) ;
133134 var response = JsonConvert . DeserializeObject < RelayerResponse > ( req . downloadHandler . text ) ;
134135 var result = JsonConvert . DeserializeObject < RelayerResult > ( response . result ) ;
135136 txHash = result . txHash ;
You can’t perform that action at this time.
0 commit comments