From e70ce1b1d19eb4c7165444f9a99c954b4e05edd2 Mon Sep 17 00:00:00 2001 From: janniks Date: Mon, 30 Oct 2023 22:50:15 +0100 Subject: [PATCH] docs: add tsdocs --- packages/common/src/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/common/src/utils.ts b/packages/common/src/utils.ts index 0ac3ca78..6b5caf15 100644 --- a/packages/common/src/utils.ts +++ b/packages/common/src/utils.ts @@ -386,6 +386,9 @@ export function intToBigInt(value: IntegerType, signed: boolean): bigint { ); } +/** + * Adds a `0x` prefix to a string if it does not already have one. + */ export function with0x(value: string): string { return value.startsWith('0x') ? value : `0x${value}`; }