@@ -36,11 +36,6 @@ export class MosaicProperties {
3636 */
3737 public readonly transferable : boolean ;
3838
39- /**
40- * Levy mutable
41- */
42- public readonly levyMutable : boolean ;
43-
4439 /**
4540 * @param flags
4641 * @param divisibility
@@ -63,10 +58,9 @@ export class MosaicProperties {
6358 */
6459 public readonly duration ?: UInt64 ) {
6560 let binaryFlags = '00' + ( flags . lower >>> 0 ) . toString ( 2 ) ;
66- binaryFlags = binaryFlags . substr ( binaryFlags . length - 3 , 3 ) ;
67- this . supplyMutable = binaryFlags [ 2 ] === '1' ;
68- this . transferable = binaryFlags [ 1 ] === '1' ;
69- this . levyMutable = binaryFlags [ 0 ] === '1' ;
61+ binaryFlags = binaryFlags . substr ( binaryFlags . length - 2 , 2 ) ;
62+ this . supplyMutable = binaryFlags [ 1 ] === '1' ;
63+ this . transferable = binaryFlags [ 0 ] === '1' ;
7064 }
7165
7266 /**
@@ -77,11 +71,10 @@ export class MosaicProperties {
7771 public static create ( params : {
7872 supplyMutable : boolean ,
7973 transferable : boolean ,
80- levyMutable : boolean ,
8174 divisibility : number ,
8275 duration ?: UInt64 ,
8376 } ) {
84- const flags = ( params . supplyMutable ? 1 : 0 ) + ( params . transferable ? 2 : 0 ) + ( params . levyMutable ? 4 : 0 ) ;
77+ const flags = ( params . supplyMutable ? 1 : 0 ) + ( params . transferable ? 2 : 0 ) ;
8578 return new MosaicProperties ( UInt64 . fromUint ( flags ) , params . divisibility , params . duration ) ;
8679 }
8780
@@ -91,8 +84,7 @@ export class MosaicProperties {
9184 toDTO ( ) {
9285 const dto = [
9386 { id : 0 , value : UInt64 . fromUint ( ( this . supplyMutable ? 1 : 0 ) +
94- ( this . transferable ? 2 : 0 ) +
95- ( this . levyMutable ? 4 : 0 ) ) . toDTO ( ) } ,
87+ ( this . transferable ? 2 : 0 ) ) . toDTO ( ) } ,
9688 { id : 1 , value : UInt64 . fromUint ( this . divisibility ) . toDTO ( ) } ,
9789 ] ;
9890
0 commit comments