From 2635545ae89bbc670895f4d20d030beb60a17cdb Mon Sep 17 00:00:00 2001 From: Gregor Date: Thu, 10 Oct 2024 14:13:14 +0200 Subject: [PATCH] expose bytes base class --- src/lib/provable/wrapped-classes.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/provable/wrapped-classes.ts b/src/lib/provable/wrapped-classes.ts index ad11e446b0..79121c5b64 100644 --- a/src/lib/provable/wrapped-classes.ts +++ b/src/lib/provable/wrapped-classes.ts @@ -19,3 +19,6 @@ function Bytes(size: number) { Bytes.from = InternalBytes.from; Bytes.fromHex = InternalBytes.fromHex; Bytes.fromString = InternalBytes.fromString; + +// expore base class so that we can detect Bytes with `instanceof` +Bytes.Base = InternalBytes;