From 352142fef20e4b066022f0aa4819d39a1f0c74c4 Mon Sep 17 00:00:00 2001 From: evilpeach Date: Thu, 21 Dec 2023 14:20:07 +0700 Subject: [PATCH] fix: query msg regex for Sylvia contract --- CHANGELOG.md | 1 + src/lib/hooks/useQueryCmds.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3045e1c8e..247a027c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -75,6 +75,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Bug fixes +- [#690](https://github.com/alleslabs/celatone-frontend/pull/690) Fix query msg regex for Sylvia contract - [#689](https://github.com/alleslabs/celatone-frontend/pull/689) Fix execute msg regex for Sylvia contract - [#685](https://github.com/alleslabs/celatone-frontend/pull/685) Disable save account in mobile - [#683](https://github.com/alleslabs/celatone-frontend/pull/683) Fix save account hex duplicate and search with hex diff --git a/src/lib/hooks/useQueryCmds.ts b/src/lib/hooks/useQueryCmds.ts index 4e7425b8c..e625fa528 100644 --- a/src/lib/hooks/useQueryCmds.ts +++ b/src/lib/hooks/useQueryCmds.ts @@ -36,7 +36,7 @@ export const useQueryCmds = (contractAddress: ContractAddr) => { // Check if Sylvia framework const sylviaRegex = - /Messages supported by this contract: (.*?): query wasm contract failed: invalid request/; + /Messages supported by this contract: (.*?)(: query wasm contract failed: invalid request)?$/; const contentMatch = resMsg?.match(sylviaRegex); if (contentMatch && contentMatch[1]) {