1515 */
1616import { expect } from 'chai' ;
1717import { NetworkType } from '../../../src/model/blockchain/NetworkType' ;
18- import { XEM } from '../../../src/model/mosaic/XEM' ;
1918import { AggregateTransaction } from '../../../src/model/transaction/AggregateTransaction' ;
2019import { Deadline } from '../../../src/model/transaction/Deadline' ;
2120import { HashLockTransaction } from '../../../src/model/transaction/HashLockTransaction' ;
2221import { UInt64 } from '../../../src/model/UInt64' ;
2322import { TestingAccount } from '../../conf/conf.spec' ;
23+ import { NetworkCurrencyMosaic } from '../../../src/model/model' ;
2424
2525describe ( 'HashLockTransaction' , ( ) => {
2626 const account = TestingAccount ;
@@ -33,11 +33,11 @@ describe('HashLockTransaction', () => {
3333 ) ;
3434 const signedTransaction = account . sign ( aggregateTransaction ) ;
3535 const transaction = HashLockTransaction . create ( Deadline . create ( ) ,
36- XEM . createRelative ( 10 ) ,
36+ NetworkCurrencyMosaic . createRelative ( 10 ) ,
3737 UInt64 . fromUint ( 10 ) ,
3838 signedTransaction ,
3939 NetworkType . MIJIN_TEST ) ;
40- expect ( transaction . mosaic . id ) . to . be . equal ( XEM . MOSAIC_ID ) ;
40+ expect ( transaction . mosaic . id ) . to . be . equal ( NetworkCurrencyMosaic . NAMESPACE_ID ) ;
4141 expect ( transaction . mosaic . amount . compact ( ) ) . to . be . equal ( 10000000 ) ;
4242 expect ( transaction . hash ) . to . be . equal ( signedTransaction . hash ) ;
4343 } ) ;
@@ -52,7 +52,7 @@ describe('HashLockTransaction', () => {
5252 const signedTransaction = account . sign ( aggregateTransaction ) ;
5353 expect ( ( ) => {
5454 HashLockTransaction . create ( Deadline . create ( ) ,
55- XEM . createRelative ( 10 ) ,
55+ NetworkCurrencyMosaic . createRelative ( 10 ) ,
5656 UInt64 . fromUint ( 10 ) ,
5757 signedTransaction ,
5858 NetworkType . MIJIN_TEST ) ;
0 commit comments