-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance callContractFn with structured memory management and detailed…
… debug logging - Refactored the `callContractFn` method in `wazeroruntime.go` to improve memory management by implementing region-based approaches for writing environment, message, and info data. - Added detailed debug logging to track memory operations and function calls, enhancing traceability during contract execution. - Introduced helper functions for memory allocation and reading, ensuring safer and more efficient memory handling. - Improved error handling for memory operations, validating regions and ensuring robust contract function calls. - Updated comments throughout the method to clarify the purpose of each section, improving code readability and maintainability.
- Loading branch information
Showing
1 changed file
with
143 additions
and
25 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