You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix comment in testutil/utils.go to reflect actual panic behavior instead of fallback values
- Improve aa_sender validation error message to include invalid value for better debugging
- Simplify template resolution error message by moving explanation to log field
- Enhance hyphen validation log message with specific guidance about valid variable paths
- Update LoadSecretsForImmediateExecution comment to clarify user-level secrets limitation
These changes improve code clarity, debugging capabilities, and user guidance
based on GitHub Copilot feedback in PR #407.
v.logger.Warn("Template variable path contains invalid character (hyphen)", "expression", expr)
1707
+
v.logger.Warn("Template variable path contains invalid character (hyphen) - use snake_case for simple variable paths", "expression", expr, "help", "Hyphens are only invalid in simple variable paths like 'settings.field-name'. Use 'settings.field_name' instead. Hyphens are allowed in complex expressions, string literals, and array indexing.")
r.vm.logger.Error("❌ CONTRACT WRITE - Template variable failed to resolve",
172
172
"method", methodCall.MethodName,
173
173
"original_param", param,
174
-
"resolved_param", resolvedMethodParams[i])
174
+
"resolved_param", resolvedMethodParams[i],
175
+
"explanation", "This may be due to an undefined variable, incorrect template syntax, or unsupported variable names (e.g., variables with hyphens are not supported; use snake_case such as 'recipient_address' instead of 'recipient-address').")
175
176
}
176
177
return&avsproto.ContractWriteNode_MethodResult{
177
178
MethodName: methodCall.MethodName,
178
179
Success: false,
179
-
Error: fmt.Sprintf("template variable resolution failed in parameter %d: '%s' resolved to '%s'. This may be due to an undefined variable, incorrect template syntax, or unsupported variable names (e.g., variables with hyphens are not supported; use snake_case such as 'recipient_address' instead of 'recipient-address').", i, param, resolvedMethodParams[i]),
180
+
Error: fmt.Sprintf("template variable resolution failed in parameter %d: '%s' resolved to '%s'", i, param, resolvedMethodParams[i]),
0 commit comments