From 67de66c7ee99a8e9b0334a1956e4300278f3f5b1 Mon Sep 17 00:00:00 2001 From: Eric Taylor Date: Wed, 20 Nov 2024 10:50:42 -0700 Subject: [PATCH] refactor: access internal bytes directly --- src/serializable/pvm/warp/signature.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/serializable/pvm/warp/signature.ts b/src/serializable/pvm/warp/signature.ts index 2a406665e..1f48fef4f 100644 --- a/src/serializable/pvm/warp/signature.ts +++ b/src/serializable/pvm/warp/signature.ts @@ -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 { @@ -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); } }