@@ -23,7 +23,6 @@ import { Account } from '../../src/model/account/Account';
2323import { PlainMessage } from '../../src/model/message/PlainMessage' ;
2424import { Address , CosignatureTransaction , LockFundsTransaction , Mosaic , SignedTransaction , UInt64 } from '../../src/model/model' ;
2525import { MosaicId } from '../../src/model/mosaic/MosaicId' ;
26- import { NetworkCurrencyLocal } from '../../src/model/mosaic/NetworkCurrencyLocal' ;
2726import { NamespaceId } from '../../src/model/namespace/NamespaceId' ;
2827import { NetworkType } from '../../src/model/network/NetworkType' ;
2928import { AggregateTransaction } from '../../src/model/transaction/AggregateTransaction' ;
@@ -45,7 +44,7 @@ describe('Listener', () => {
4544 let namespaceRepository : NamespaceRepository ;
4645 let generationHash : string ;
4746 let networkType : NetworkType ;
48- const NetworkCurrencyLocalId : NamespaceId = NetworkCurrencyLocal . NAMESPACE_ID ;
47+ const NetworkCurrencyLocalId : NamespaceId = helper . networkCurrencyNamespaceId ;
4948 let transactionRepository : TransactionRepository ;
5049
5150 before ( ( ) => {
@@ -100,7 +99,7 @@ describe('Listener', () => {
10099 mosaicId : MosaicId | NamespaceId ) => {
101100 const lockFundsTransaction = LockFundsTransaction . create (
102101 Deadline . create ( ) ,
103- new Mosaic ( mosaicId , UInt64 . fromUint ( 10 * Math . pow ( 10 , NetworkCurrencyLocal . DIVISIBILITY ) ) ) ,
102+ new Mosaic ( mosaicId , UInt64 . fromUint ( 10 * Math . pow ( 10 , helper . networkCurrencyDivisibility ) ) ) ,
104103 UInt64 . fromUint ( 1000 ) ,
105104 signedAggregatedTransaction ,
106105 networkType , helper . maxFee ,
@@ -180,7 +179,7 @@ describe('Listener', () => {
180179 const transferTransaction = TransferTransaction . create (
181180 Deadline . create ( ) ,
182181 cosignAccount1 . address ,
183- [ new Mosaic ( NetworkCurrencyLocalId , UInt64 . fromUint ( 10 * Math . pow ( 10 , NetworkCurrencyLocal . DIVISIBILITY ) ) ) ] ,
182+ [ new Mosaic ( NetworkCurrencyLocalId , UInt64 . fromUint ( 10 * Math . pow ( 10 , helper . networkCurrencyDivisibility ) ) ) ] ,
184183 PlainMessage . create ( 'test-message' ) ,
185184 networkType , helper . maxFee ,
186185 ) ;
@@ -341,7 +340,7 @@ describe('Listener', () => {
341340 describe ( 'Transactions Status' , ( ) => {
342341
343342 it ( 'transactionStatusGiven' , ( ) => {
344- const mosaics = [ NetworkCurrencyLocal . createRelative ( 1000000000000 ) ] ;
343+ const mosaics = [ helper . createNetworkCurrency ( 1000000000000 ) ] ;
345344 const transferTransaction = TransferTransaction . create (
346345 Deadline . create ( ) ,
347346 account2 . address ,
0 commit comments