Skip to content

Commit

Permalink
Merge pull request #690 from alleslabs/fix/query-msg-sylvia
Browse files Browse the repository at this point in the history
fix: query msg regex for Sylvia contract
  • Loading branch information
evilpeach committed Dec 21, 2023
2 parents 96543e8 + 352142f commit f0fd0ee
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

2 comments on commit f0fd0ee

@vercel
Copy link

@vercel vercel bot commented on f0fd0ee Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on f0fd0ee Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.