@@ -352,7 +352,7 @@ func TestSubscribeTxnStatus(t *testing.T) {
352
352
353
353
subCtx := context .WithValue (context .Background (), jsonrpc.ConnKey {}, & fakeConn {w : serverConn })
354
354
355
- id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash , nil )
355
+ id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash )
356
356
assert .Nil (t , id )
357
357
assert .Equal (t , ErrTxnHashNotFound , rpcErr )
358
358
})
@@ -381,7 +381,7 @@ func TestSubscribeTxnStatus(t *testing.T) {
381
381
mockChain .EXPECT ().HeadsHeader ().Return (& core.Header {Number : 1024 }, nil )
382
382
mockChain .EXPECT ().BlockHeaderByNumber (blockID .Number ).Return (& core.Header {Number : 0 }, nil )
383
383
384
- id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash , blockID )
384
+ id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash )
385
385
assert .Zero (t , id )
386
386
assert .Equal (t , ErrTooManyBlocksBack , rpcErr )
387
387
})
@@ -390,7 +390,7 @@ func TestSubscribeTxnStatus(t *testing.T) {
390
390
mockChain .EXPECT ().HeadsHeader ().Return (& core.Header {Number : 2024 }, nil )
391
391
mockChain .EXPECT ().BlockHeaderByNumber (blockID .Number ).Return (& core.Header {Number : 0 }, nil )
392
392
393
- id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash , blockID )
393
+ id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash )
394
394
assert .Zero (t , id )
395
395
assert .Equal (t , ErrTooManyBlocksBack , rpcErr )
396
396
})
@@ -422,7 +422,7 @@ func TestSubscribeTxnStatus(t *testing.T) {
422
422
423
423
ctx , cancel := context .WithCancel (context .Background ())
424
424
subCtx := context .WithValue (ctx , jsonrpc.ConnKey {}, & fakeConn {w : serverConn })
425
- id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash , nil )
425
+ id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash )
426
426
require .Nil (t , rpcErr )
427
427
428
428
b , err := TxnStatusRejected .MarshalText ()
@@ -453,7 +453,7 @@ func TestSubscribeTxnStatus(t *testing.T) {
453
453
454
454
ctx , cancel := context .WithCancel (context .Background ())
455
455
subCtx := context .WithValue (ctx , jsonrpc.ConnKey {}, & fakeConn {w : serverConn })
456
- id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash , nil )
456
+ id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash )
457
457
require .Nil (t , rpcErr )
458
458
459
459
b , err := TxnStatusAcceptedOnL1 .MarshalText ()
@@ -502,7 +502,7 @@ func TestSubscribeTxnStatus(t *testing.T) {
502
502
503
503
ctx , cancel := context .WithCancel (context .Background ())
504
504
subCtx := context .WithValue (ctx , jsonrpc.ConnKey {}, & fakeConn {w : serverConn })
505
- id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash , nil )
505
+ id , rpcErr := handler .SubscribeTransactionStatus (subCtx , * txHash )
506
506
require .Nil (t , rpcErr )
507
507
508
508
b , err := TxnStatusReceived .MarshalText ()
0 commit comments