helper/helper.go
Function WriteResponseToMemory
has 8 return statements (exceeds 4 allowed). Open
Open
func WriteResponseToMemory(module api.Module, msg proto.Message) (uint64, error) {
if module == nil {
return 0, errors.New("module cannot be nil")
}
Function ReadRequestFromMemory
has 6 return statements (exceeds 4 allowed). Open
Open
func ReadRequestFromMemory(module api.Module, msg proto.Message, ptr, length int32) error {
if length <= 0 {
return errors.New("length must be greater than 0")
}