Skip to content

Commit

Permalink
csharp: fix closing brackets on sdk generator (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: luc10921 <[email protected]>
  • Loading branch information
luc10921 and luc10921 authored May 3, 2024
1 parent 3a5d2ab commit a843612
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions generators/csharp/onchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const csharpSrcTmpl = `
{{- .Type}} {{.Name}}
{{- end}}) {
return ({{.ReturnType}}) Contract.Call(ScriptHash, "{{.NameABI}}", CallFlags.All
{{- range $arg := .Arguments -}}, {{ .Name -}} {{ else }}, new object[0]{{end}});
{{- range $arg := .Arguments -}}, {{ .Name -}} {{ else }}, new object[0]{{end}});
}
{{- end -}}
using Neo;
using Neo.Cryptography.ECC;
Expand All @@ -36,7 +37,7 @@ namespace cpm {
{{- range $m := .Methods}}
{{ template "METHOD" $m -}}
{{end}}
}
}
}
`

Expand Down

0 comments on commit a843612

Please sign in to comment.