@@ -14,8 +14,8 @@ import (
14
14
"github.com/stretchr/testify/suite"
15
15
"golang.org/x/sync/errgroup"
16
16
17
- "github.com/taikoxyz/taiko-client/internal/sender"
18
17
"github.com/taikoxyz/taiko-client/internal/testutils"
18
+ "github.com/taikoxyz/taiko-client/pkg/sender"
19
19
)
20
20
21
21
type SenderTestSuite struct {
@@ -66,7 +66,7 @@ func (s *SenderTestSuite) TestSendRawTransaction() {
66
66
i := i
67
67
eg .Go (func () error {
68
68
addr := common .BigToAddress (big .NewInt (int64 (i )))
69
- _ , err := s .sender .SendRawTransaction (nonce + uint64 (i ), & addr , big .NewInt (1 ), nil )
69
+ _ , err := s .sender .SendRawTransaction (nonce + uint64 (i ), & addr , big .NewInt (1 ), nil , nil )
70
70
return err
71
71
})
72
72
}
@@ -114,12 +114,12 @@ func (s *SenderTestSuite) TestReplacement() {
114
114
s .Nil (err )
115
115
116
116
// Replace the transaction with a higher nonce.
117
- _ , err = send .SendRawTransaction (nonce , & common.Address {}, big .NewInt (1 ), nil )
117
+ _ , err = send .SendRawTransaction (nonce , & common.Address {}, big .NewInt (1 ), nil , nil )
118
118
s .Nil (err )
119
119
120
120
time .Sleep (time .Second * 6 )
121
121
// Send a transaction with a next nonce and let all the transactions be confirmed.
122
- _ , err = send .SendRawTransaction (nonce - 1 , & common.Address {}, big .NewInt (1 ), nil )
122
+ _ , err = send .SendRawTransaction (nonce - 1 , & common.Address {}, big .NewInt (1 ), nil , nil )
123
123
s .Nil (err )
124
124
125
125
for _ , confirmCh := range send .TxToConfirmChannels () {
@@ -150,7 +150,7 @@ func (s *SenderTestSuite) TestNonceTooLow() {
150
150
return
151
151
}
152
152
153
- txID , err := send .SendRawTransaction (nonce - 3 , & common.Address {}, big .NewInt (1 ), nil )
153
+ txID , err := send .SendRawTransaction (nonce - 3 , & common.Address {}, big .NewInt (1 ), nil , nil )
154
154
s .Nil (err )
155
155
confirm := <- send .TxToConfirmChannel (txID )
156
156
s .Nil (confirm .Err )
0 commit comments