-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ibc-hooks): improved UnmarshalJSON validation & error handling (#…
…324) * feat(ibc-hooks): improved UnmarshalJSON validation & error handling Descritpion ----------- Improves AsyncCallback JSON unmarshaling with: - Better validation for ModuleAddress format and required fields - More specific error messages - Memory optimization using single intermediate struct - Comprehensive test coverage for error cases Tetsing the introduced `feat` ----------------------------- Fetch this PR branch and from the root directory run: ``` go test ./x/ibc-hooks/move-hooks/message_test.go -v ``` * refact: improved AsyncCallback.UnmarshalJSON validation Description ----------- - Added overflow checking for uint64 ID conversion - Added validation for decimal and negative values - Added comprehensive test cases for edge cases
- Loading branch information
1 parent
10dcf14
commit e0e3c76
Showing
2 changed files
with
202 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters