File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export class MerkleHashBuilder {
35
35
*
36
36
* @var {number}
37
37
*/
38
- public readonly length : 32 | 64 ,
38
+ public readonly length : number ,
39
39
/**
40
40
* Signature schema used (hash algorithm diff)
41
41
*
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ export class AggregateTransaction extends Transaction {
340
340
this . type . valueOf ( ) ,
341
341
new AmountDto ( this . maxFee . toDTO ( ) ) ,
342
342
new TimestampDto ( this . deadline . toDTO ( ) ) ,
343
- new Hash256Dto ( this . calculateInnerTransactionHash ( this . networkType ) ) ,
343
+ new Hash256Dto ( this . calculateInnerTransactionHash ( ) ) ,
344
344
transactions ,
345
345
cosignatures ,
346
346
) :
@@ -352,7 +352,7 @@ export class AggregateTransaction extends Transaction {
352
352
this . type . valueOf ( ) ,
353
353
new AmountDto ( this . maxFee . toDTO ( ) ) ,
354
354
new TimestampDto ( this . deadline . toDTO ( ) ) ,
355
- new Hash256Dto ( this . calculateInnerTransactionHash ( this . networkType ) ) ,
355
+ new Hash256Dto ( this . calculateInnerTransactionHash ( ) ) ,
356
356
transactions ,
357
357
cosignatures ,
358
358
) ;
@@ -372,7 +372,7 @@ export class AggregateTransaction extends Transaction {
372
372
* Generate inner transaction root hash (merkle tree)
373
373
* @returns {Uint8Array }
374
374
*/
375
- private calculateInnerTransactionHash ( networkType : NetworkType ) : Uint8Array {
375
+ private calculateInnerTransactionHash ( ) : Uint8Array {
376
376
// Note: Transaction hashing *always* uses SHA3
377
377
const hasher = SHA3Hasher . createHasher ( 32 , SignSchema . SHA3 ) ;
378
378
const builder = new MerkleHashBuilder ( 32 , SignSchema . SHA3 ) ;
You can’t perform that action at this time.
0 commit comments