We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b50aa6 commit 67de66cCopy full SHA for 67de66c
src/serializable/pvm/warp/signature.ts
@@ -5,7 +5,6 @@ import { serializable } from '../../common/types';
5
import { TypeSymbols } from '../../constants';
6
import { BlsSignature } from '../../fxs/common';
7
import { Bytes } from '../../primitives';
8
-import { INT_LEN } from '../../primitives/int';
9
10
@serializable()
11
export class WarpSignature {
@@ -41,6 +40,6 @@ export class WarpSignature {
41
40
* This is used to calculate the Warp complexity in transactions.
42
*/
43
numOfSigners(): number {
44
- return hammingWeight(this.signers.toBytes().slice(INT_LEN));
+ return hammingWeight(this.signers.bytes);
45
}
46
0 commit comments