Skip to content

Commit 3124b09

Browse files
committed
Separate receipt polling in Wallet.SendRawTransaction
Avoid going through wallet rpcs
1 parent ad4ca35 commit 3124b09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Thirdweb/Core/Scripts/Wallet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,8 @@ public async Task<TransactionResult> SendRawTransaction(TransactionRequest trans
867867
new HexBigInteger(BigInteger.Parse(transactionRequest.gasPrice)),
868868
new HexBigInteger(transactionRequest.value)
869869
);
870-
var receipt = await ThirdwebManager.Instance.SDK.session.Web3.Eth.TransactionManager.SendTransactionAndWaitForReceiptAsync(input);
871-
return receipt.ToTransactionResult();
870+
var hash = await ThirdwebManager.Instance.SDK.session.Web3.Eth.TransactionManager.SendTransactionAsync(input);
871+
return await Transaction.WaitForTransactionResult(hash);
872872
}
873873
}
874874

0 commit comments

Comments
 (0)