From c42d82c1a2377b9948c78513ab6a061ecc6f68fe Mon Sep 17 00:00:00 2001 From: Eric Taylor Date: Wed, 20 Nov 2024 10:50:42 -0700 Subject: [PATCH] docs: update jsdoc comment --- src/serializable/pvm/warp/signature.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/serializable/pvm/warp/signature.ts b/src/serializable/pvm/warp/signature.ts index 2a406665e..2706d9466 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 { @@ -34,13 +33,13 @@ export class WarpSignature { } /** - * Number of [bls.PublicKeys] that participated in the + * Number of public keys that participated in the * {@linkcode BlsSignature}. This is exposed because users of the signatures * typically impose a verification fee that is a function of the number of signers. * * 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); } }