@@ -17,6 +17,7 @@ import (
17
17
"github.com/smartcontractkit/chainlink-common/pkg/logger"
18
18
"github.com/smartcontractkit/chainlink-common/pkg/services"
19
19
commontypes "github.com/smartcontractkit/chainlink-common/pkg/types"
20
+ evmtypes "github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm"
20
21
"github.com/smartcontractkit/chainlink-common/pkg/utils"
21
22
22
23
"github.com/smartcontractkit/chainlink-framework/chains"
@@ -57,7 +58,7 @@ type TxManager[CID chains.ID, HEAD chains.Head[BHASH], ADDR chains.Hashable, THA
57
58
FindEarliestUnconfirmedTxAttemptBlock (ctx context.Context ) (nullv4.Int , error )
58
59
CountTransactionsByState (ctx context.Context , state txmgrtypes.TxState ) (count uint32 , err error )
59
60
GetTransactionStatus (ctx context.Context , transactionID string ) (state commontypes.TransactionStatus , err error )
60
- GetTransactionFee (ctx context.Context , transactionID string ) (fee * commontypes .TransactionFee , err error )
61
+ GetTransactionFee (ctx context.Context , transactionID string ) (fee * evmtypes .TransactionFee , err error )
61
62
}
62
63
63
64
type TxmV2Wrapper [CID chains.ID , HEAD chains.Head [BHASH ], ADDR chains.Hashable , THASH chains.Hashable , BHASH chains.Hashable , SEQ chains.Sequence , FEE fees.Fee ] interface {
@@ -731,7 +732,7 @@ func (b *Txm[CID, HEAD, ADDR, THASH, BHASH, R, SEQ, FEE]) GetTransactionStatus(c
731
732
}
732
733
}
733
734
734
- func (b * Txm [CID , HEAD , ADDR , THASH , BHASH , R , SEQ , FEE ]) GetTransactionFee (ctx context.Context , transactionID string ) (fee * commontypes .TransactionFee , err error ) {
735
+ func (b * Txm [CID , HEAD , ADDR , THASH , BHASH , R , SEQ , FEE ]) GetTransactionFee (ctx context.Context , transactionID string ) (fee * evmtypes .TransactionFee , err error ) {
735
736
receipt , err := b .txStore .FindReceiptWithIdempotencyKey (ctx , transactionID , b .chainID )
736
737
if err != nil {
737
738
return fee , fmt .Errorf ("failed to find receipt with IdempotencyKey %s: %w" , transactionID , err )
@@ -755,7 +756,7 @@ func (b *Txm[CID, HEAD, ADDR, THASH, BHASH, R, SEQ, FEE]) GetTransactionFee(ctx
755
756
return fee , fmt .Errorf ("tx status is not finalized" )
756
757
}
757
758
758
- fee = & commontypes .TransactionFee {
759
+ fee = & evmtypes .TransactionFee {
759
760
TransactionFee : totalFee ,
760
761
}
761
762
@@ -843,7 +844,7 @@ func (n *NullTxManager[CID, HEAD, ADDR, THASH, BHASH, SEQ, FEE]) GetTransactionS
843
844
return
844
845
}
845
846
846
- func (n * NullTxManager [CID , HEAD , ADDR , THASH , BHASH , SEQ , FEE ]) GetTransactionFee (ctx context.Context , transactionID string ) (fee * commontypes .TransactionFee , err error ) {
847
+ func (n * NullTxManager [CID , HEAD , ADDR , THASH , BHASH , SEQ , FEE ]) GetTransactionFee (ctx context.Context , transactionID string ) (fee * evmtypes .TransactionFee , err error ) {
847
848
return
848
849
}
849
850
0 commit comments