Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance memory management and debugging in WazeroRuntime
- Introduced new helper functions for memory allocation and reading in `wazeroruntime.go`, improving safety and efficiency. - Added a maximum memory pages constant to centralize memory configuration. - Refactored `callContractFn` to streamline memory operations and enhance debug logging for better traceability during contract execution. - Implemented region-based approaches for writing environment, message, and info data, ensuring robust memory handling. - Improved error handling and validation for memory operations, enhancing overall reliability.
- Loading branch information