From 2c88b0fea9473a33e91200ea009e5699a6eb0341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wanlin=20Wang=20=E7=8E=8B=E4=B8=87=E9=9C=96?= Date: Thu, 12 Sep 2024 11:12:45 +0800 Subject: [PATCH] Change error message for invalid BRC-20 Tick format (#44) --- src/subcommand/server/brc20/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subcommand/server/brc20/mod.rs b/src/subcommand/server/brc20/mod.rs index 8d5887ce48..fd7c8eb67b 100644 --- a/src/subcommand/server/brc20/mod.rs +++ b/src/subcommand/server/brc20/mod.rs @@ -9,7 +9,7 @@ pub(super) use {balance::*, outpoint::*, receipt::*, ticker::*, transferable::*} #[derive(Debug, thiserror::Error)] pub(super) enum BRC20ApiError { - #[error("invalid ticker {0}, must be 4 characters long")] + #[error("invalid ticker {0}, must be 4 or 5 characters long")] InvalidTicker(String), #[error("failed to retrieve ticker {0} in the database")] UnknownTicker(String),