1- package finalizer_test
1+ package ethfinalizer_test
22
33import (
44 "context"
@@ -11,8 +11,8 @@ import (
1111 "testing"
1212 "time"
1313
14+ "github.com/0xsequence/ethkit/ethfinalizer"
1415 "github.com/0xsequence/ethkit/ethwallet"
15- "github.com/0xsequence/ethkit/finalizer"
1616 "github.com/0xsequence/ethkit/go-ethereum/common"
1717 "github.com/0xsequence/ethkit/go-ethereum/core/types"
1818 "github.com/stretchr/testify/assert"
@@ -60,9 +60,9 @@ func test(t *testing.T, isEIP1559 bool) {
6060 })
6161 assert .NoError (t , err )
6262
63- mempool := finalizer .NewMemoryMempool [struct {}]()
63+ mempool := ethfinalizer .NewMemoryMempool [struct {}]()
6464
65- finalizer , err := finalizer .NewFinalizer (finalizer .FinalizerOptions [struct {}]{
65+ finalizer , err := ethfinalizer .NewFinalizer (ethfinalizer .FinalizerOptions [struct {}]{
6666 Wallet : wallet ,
6767 Chain : chain ,
6868 Mempool : mempool ,
@@ -228,7 +228,7 @@ type TestChain struct {
228228 highestNonce * uint64
229229 mu sync.RWMutex
230230
231- subscriptions map [chan finalizer .Diff ]struct {}
231+ subscriptions map [chan ethfinalizer .Diff ]struct {}
232232 subscriptionsMu sync.RWMutex
233233}
234234
@@ -246,7 +246,7 @@ func NewTestChain(options TestChainOptions) (*TestChain, error) {
246246
247247 mempool : map [uint64 ][]* types.Transaction {},
248248
249- subscriptions : map [chan finalizer .Diff ]struct {}{},
249+ subscriptions : map [chan ethfinalizer .Diff ]struct {}{},
250250 }, nil
251251}
252252
@@ -284,7 +284,7 @@ func (c *TestChain) Publish() {
284284 c .subscriptionsMu .RLock ()
285285 defer c .subscriptionsMu .RUnlock ()
286286
287- diff := finalizer .Diff {
287+ diff := ethfinalizer .Diff {
288288 Removed : map [common.Hash ]struct {}{},
289289 Added : map [common.Hash ]struct {}{},
290290 }
@@ -367,11 +367,11 @@ func (c *TestChain) PriorityFee(ctx context.Context) (*big.Int, error) {
367367 return new (big.Int ).SetUint64 (uniform (c .MinPriorityFee , c .MaxPriorityFee )), nil
368368}
369369
370- func (c * TestChain ) Subscribe (ctx context.Context ) (<- chan finalizer .Diff , error ) {
370+ func (c * TestChain ) Subscribe (ctx context.Context ) (<- chan ethfinalizer .Diff , error ) {
371371 c .subscriptionsMu .Lock ()
372372 defer c .subscriptionsMu .Unlock ()
373373
374- subscription := make (chan finalizer .Diff )
374+ subscription := make (chan ethfinalizer .Diff )
375375 c .subscriptions [subscription ] = struct {}{}
376376
377377 go func () {
0 commit comments