Skip to content

Commit 67de66c

Browse files
committed
refactor: access internal bytes directly
1 parent 7b50aa6 commit 67de66c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/serializable/pvm/warp/signature.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { serializable } from '../../common/types';
55
import { TypeSymbols } from '../../constants';
66
import { BlsSignature } from '../../fxs/common';
77
import { Bytes } from '../../primitives';
8-
import { INT_LEN } from '../../primitives/int';
98

109
@serializable()
1110
export class WarpSignature {
@@ -41,6 +40,6 @@ export class WarpSignature {
4140
* This is used to calculate the Warp complexity in transactions.
4241
*/
4342
numOfSigners(): number {
44-
return hammingWeight(this.signers.toBytes().slice(INT_LEN));
43+
return hammingWeight(this.signers.bytes);
4544
}
4645
}

0 commit comments

Comments
 (0)