Skip to content

Commit

Permalink
refactor: access internal bytes directly
Browse files Browse the repository at this point in the history
  • Loading branch information
erictaylor committed Nov 20, 2024
1 parent 7b50aa6 commit 67de66c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/serializable/pvm/warp/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { serializable } from '../../common/types';
import { TypeSymbols } from '../../constants';
import { BlsSignature } from '../../fxs/common';
import { Bytes } from '../../primitives';
import { INT_LEN } from '../../primitives/int';

@serializable()
export class WarpSignature {
Expand Down Expand Up @@ -41,6 +40,6 @@ export class WarpSignature {
* This is used to calculate the Warp complexity in transactions.
*/
numOfSigners(): number {
return hammingWeight(this.signers.toBytes().slice(INT_LEN));
return hammingWeight(this.signers.bytes);
}
}

0 comments on commit 67de66c

Please sign in to comment.