From 9324eacc42232bd0e9d09f52ff932d150ae890e9 Mon Sep 17 00:00:00 2001 From: "linfeng.yuan" Date: Fri, 6 Sep 2024 11:53:37 +0800 Subject: [PATCH] fix valid name error --- src/okx/datastore/ord/btc_domain.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/okx/datastore/ord/btc_domain.rs b/src/okx/datastore/ord/btc_domain.rs index 78633d41a9..8ee2433822 100644 --- a/src/okx/datastore/ord/btc_domain.rs +++ b/src/okx/datastore/ord/btc_domain.rs @@ -38,8 +38,11 @@ impl BtcDomain { return false } // check if it's json format - let value: Result = serde_json::from_str(name); - return value.is_err() + if name.contains("{") { + let value: Result = serde_json::from_str(name); + return value.is_err() + } + true } pub fn to_collection_key(&self) -> String {