From 57c58f63263534a155ff7f57ccd64cd7626836b7 Mon Sep 17 00:00:00 2001
From: Daiki Mizukami <tesaguriguma@gmail.com>
Date: Tue, 10 Dec 2024 05:23:39 +0900
Subject: [PATCH] fix(crypto): fix error message of `bytesToMultibase` (#3203)

It was printing the `Uint8Array` instead of the encoding name.
---
 packages/crypto/src/multibase.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/crypto/src/multibase.ts b/packages/crypto/src/multibase.ts
index d64ef27cdb3..c8209164f21 100644
--- a/packages/crypto/src/multibase.ts
+++ b/packages/crypto/src/multibase.ts
@@ -48,6 +48,6 @@ export const bytesToMultibase = (
     case 'base64urlpad':
       return 'U' + uint8arrays.toString(mb, encoding)
     default:
-      throw new Error(`Unsupported multibase: :${mb}`)
+      throw new Error(`Unsupported multibase: :${encoding}`)
   }
 }