From 17151d25d04d9de83ecf1d58dd78adadbd05bf07 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 9 Sep 2023 15:30:44 -0400 Subject: [PATCH] fix: don't prefix base58 since encoder already does it --- src/multibase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multibase.ts b/src/multibase.ts index 4712c8f..1d34d6d 100644 --- a/src/multibase.ts +++ b/src/multibase.ts @@ -46,7 +46,7 @@ export default abstract class Multibase { } toBase58(): string { - return `z${base58btc.encode(this.toBytes())}`; + return base58btc.encode(this.toBytes()); } toString(): string {