Skip to content

Commit 82af318

Browse files
Generator: add consts
1 parent 6b594bf commit 82af318

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmd/tezgen/template/contract.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ import (
1616

1717
var json = jsoniter.ConfigCompatibleWithStandardLibrary
1818

19+
// entrypoint names
20+
const (
21+
{{- range $key, $value := .EntrypointTypes }}
22+
Entrypoint{{$value.Type}} = "{{$key}}"
23+
{{- end}}
24+
)
25+
1926
{{ range $key, $value := .EntrypointTypes }}
2027
// {{ $value.Type }}Tx - `{{$key}}` transaction entity
2128
type {{ $value.Type }}Tx struct {

0 commit comments

Comments
 (0)