@@ -223,25 +223,25 @@ private async Task<RpcResponseMessage> CreateUserOpAndSend(RpcRequestMessage req
223
223
{
224
224
var getUserOpResponse = await BundlerClient . EthGetUserOperationByHash ( Config . bundlerUrl , apiKey , requestMessage . Id , userOpHash ) ;
225
225
txHash = getUserOpResponse ? . transactionHash ;
226
- await new WaitForSecondsRealtime ( 5f ) ;
226
+ await new WaitForSecondsRealtime ( 2f ) ;
227
227
}
228
228
ThirdwebDebug . Log ( "Tx Hash: " + txHash ) ;
229
229
230
- // Check if successful
231
-
232
- var receipt = await new Web3 ( ThirdwebManager . Instance . SDK . session . RPC ) . Eth . Transactions . GetTransactionReceipt . SendRequestAsync ( txHash ) ;
233
- var decodedEvents = receipt . DecodeAllEvents < EntryPointContract . UserOperationEventEventDTO > ( ) ;
234
- if ( decodedEvents [ 0 ] . Event . Success == false )
235
- {
236
- ThirdwebDebug . Log ( "Transaction not successful, checking reason..." ) ;
237
- var reason = await new Web3 ( ThirdwebManager . Instance . SDK . session . RPC ) . Eth . GetContractTransactionErrorReason . SendRequestAsync ( txHash ) ;
238
- throw new Exception ( $ "Transaction { txHash } reverted with reason: { reason } ") ;
239
- }
240
- else
241
- {
242
- ThirdwebDebug . Log ( "Transaction successful" ) ;
243
- _deployed = true ;
244
- }
230
+ // // Check if successful
231
+
232
+ // var receipt = await new Web3(ThirdwebManager.Instance.SDK.session.RPC).Eth.Transactions.GetTransactionReceipt.SendRequestAsync(txHash);
233
+ // var decodedEvents = receipt.DecodeAllEvents<EntryPointContract.UserOperationEventEventDTO>();
234
+ // if (decodedEvents[0].Event.Success == false)
235
+ // {
236
+ // ThirdwebDebug.Log("Transaction not successful, checking reason...");
237
+ // var reason = await new Web3(ThirdwebManager.Instance.SDK.session.RPC).Eth.GetContractTransactionErrorReason.SendRequestAsync(txHash);
238
+ // throw new Exception($"Transaction {txHash} reverted with reason: {reason}");
239
+ // }
240
+ // else
241
+ // {
242
+ // ThirdwebDebug.Log("Transaction successful");
243
+ // _deployed = true;
244
+ // }
245
245
246
246
return new RpcResponseMessage ( requestMessage . Id , txHash ) ;
247
247
}
0 commit comments