Skip to content

Commit

Permalink
fix: query msg regex for Sylvia contract
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpeach committed Dec 21, 2023
1 parent 96543e8 commit 352142f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib/hooks/useQueryCmds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit 352142f

Please sign in to comment.