@@ -199,7 +199,7 @@ func TestFetchTransactionReceiptBasic(t *testing.T) {
199199 go func (i int , txnHash common.Hash ) {
200200 defer wg .Done ()
201201
202- receipt , waitFinality , err := receiptsListener .FetchTransactionReceipt (ctx , txnHash , 7 )
202+ receipt , waitFinality , err := receiptsListener .FetchTransactionReceiptWithFinality (ctx , txnHash , 7 )
203203 require .NoError (t , err )
204204 require .NotNil (t , receipt )
205205 require .True (t , receipt .Status () == types .ReceiptStatusSuccessful )
@@ -226,7 +226,7 @@ func TestFetchTransactionReceiptBasic(t *testing.T) {
226226 require .Equal (t , 1 , monitor .NumSubscribers ())
227227
228228 // Testing exhausted filter after maxWait period is unable to find non-existant txn hash
229- receipt , waitFinality , err := receiptsListener .FetchTransactionReceipt (ctx , ethkit.Hash {1 , 2 , 3 , 4 }, 5 )
229+ receipt , waitFinality , err := receiptsListener .FetchTransactionReceiptWithFinality (ctx , ethkit.Hash {1 , 2 , 3 , 4 }, 5 )
230230 require .Error (t , err )
231231 require .True (t , errors .Is (err , ethreceipts .ErrFilterExhausted ))
232232 require .Nil (t , receipt )
@@ -245,7 +245,7 @@ func TestFetchTransactionReceiptBasic(t *testing.T) {
245245 monitor .PurgeHistory ()
246246 receiptsListener .PurgeHistory ()
247247
248- receipt , waitFinality , err = receiptsListener .FetchTransactionReceipt (ctx , txnHashes [0 ])
248+ receipt , waitFinality , err = receiptsListener .FetchTransactionReceiptWithFinality (ctx , txnHashes [0 ])
249249 require .NoError (t , err )
250250 require .NotNil (t , receipt )
251251 finalReceipt , err = waitFinality (context .Background ())
@@ -256,7 +256,7 @@ func TestFetchTransactionReceiptBasic(t *testing.T) {
256256 // wait enough time, so that the fetched receipt will come as finalized right away
257257 time .Sleep (5 * time .Second )
258258
259- receipt , waitFinality , err = receiptsListener .FetchTransactionReceipt (ctx , txnHashes [1 ])
259+ receipt , waitFinality , err = receiptsListener .FetchTransactionReceiptWithFinality (ctx , txnHashes [1 ])
260260 require .NoError (t , err )
261261 require .NotNil (t , receipt )
262262 require .True (t , receipt .Final )
@@ -349,7 +349,7 @@ func TestFetchTransactionReceiptBlast(t *testing.T) {
349349 go func (i int , txnHash common.Hash ) {
350350 defer wg .Done ()
351351
352- receipt , receiptFinality , err := receiptsListener .FetchTransactionReceipt (ctx , txnHash )
352+ receipt , receiptFinality , err := receiptsListener .FetchTransactionReceiptWithFinality (ctx , txnHash )
353353 assert .NoError (t , err )
354354 assert .NotNil (t , receipt )
355355 assert .True (t , receipt .Status () == types .ReceiptStatusSuccessful )
0 commit comments