Hide outputs of event in SCORE API information
@@ -623,6 +623,7 @@ func (a *Method) ToJSON(version module.JSONVersion) (interface{}, error) {
}
m["inputs"] = inputs
+ if a.Type != Event {
outputs := make([]interface{}, len(a.Outputs))
for i, output := range a.Outputs {
oo := make(map[string]interface{})
@@ -630,6 +631,7 @@ func (a *Method) ToJSON(version module.JSONVersion) (interface{}, error) {
outputs[i] = oo
}
m["outputs"] = outputs
+ }
if (a.Flags & FlagReadOnly) != 0 {
m["readonly"] = "0x1"
}
