File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/serializable/pvm/warp Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { serializable } from '../../common/types';
5
5
import { TypeSymbols } from '../../constants' ;
6
6
import { BlsSignature } from '../../fxs/common' ;
7
7
import { Bytes } from '../../primitives' ;
8
- import { INT_LEN } from '../../primitives/int' ;
9
8
10
9
@serializable ( )
11
10
export class WarpSignature {
@@ -34,13 +33,13 @@ export class WarpSignature {
34
33
}
35
34
36
35
/**
37
- * Number of [bls.PublicKeys] that participated in the
36
+ * Number of public keys that participated in the
38
37
* {@linkcode BlsSignature}. This is exposed because users of the signatures
39
38
* typically impose a verification fee that is a function of the number of signers.
40
39
*
41
40
* This is used to calculate the Warp complexity in transactions.
42
41
*/
43
42
numOfSigners ( ) : number {
44
- return hammingWeight ( this . signers . toBytes ( ) . slice ( INT_LEN ) ) ;
43
+ return hammingWeight ( this . signers . bytes ) ;
45
44
}
46
45
}
You can’t perform that action at this time.
0 commit comments