import { FeelessTransactionModel , TransactionFeesAdd } from './FeelessTransactionModel' ; import { TransactionModel } from './TransactionModel' ; const addFees = ( tx , fees ) : TransactionModel => new TransactionModel ( { version : tx . version , attributes : tx . attributes , signers : tx . signers , script : tx . script , witnesses : tx . witnesses , nonce : tx . nonce , validUntilBlock : tx . validUntilBlock , network : tx . network , maxValidUntilBlockIncrement : tx . maxValidUntilBlockIncrement , systemFee : fees . systemFee , networkFee : fees . networkFee } ) ; export const helper = { addFees } ;