@@ -17,6 +17,7 @@ import (
1717 "github.com/smartcontractkit/chainlink-common/pkg/logger"
1818 "github.com/smartcontractkit/chainlink-common/pkg/services"
1919 commontypes "github.com/smartcontractkit/chainlink-common/pkg/types"
20+ evmtypes "github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm"
2021 "github.com/smartcontractkit/chainlink-common/pkg/utils"
2122
2223 "github.com/smartcontractkit/chainlink-framework/chains"
@@ -57,7 +58,7 @@ type TxManager[CID chains.ID, HEAD chains.Head[BHASH], ADDR chains.Hashable, THA
5758 FindEarliestUnconfirmedTxAttemptBlock (ctx context.Context ) (nullv4.Int , error )
5859 CountTransactionsByState (ctx context.Context , state txmgrtypes.TxState ) (count uint32 , err error )
5960 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 )
6162}
6263
6364type 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
731732 }
732733}
733734
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 ) {
735736 receipt , err := b .txStore .FindReceiptWithIdempotencyKey (ctx , transactionID , b .chainID )
736737 if err != nil {
737738 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
755756 return fee , fmt .Errorf ("tx status is not finalized" )
756757 }
757758
758- fee = & commontypes .TransactionFee {
759+ fee = & evmtypes .TransactionFee {
759760 TransactionFee : totalFee ,
760761 }
761762
@@ -843,7 +844,7 @@ func (n *NullTxManager[CID, HEAD, ADDR, THASH, BHASH, SEQ, FEE]) GetTransactionS
843844 return
844845}
845846
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 ) {
847848 return
848849}
849850
0 commit comments