diff --git a/starknet/generators.go b/starknet/generators.go index a44ac62..6aaa310 100644 --- a/starknet/generators.go +++ b/starknet/generators.go @@ -590,6 +590,7 @@ var {{.EventHashVar}} string = "{{.EventHash}}" // {{.GoName}} is the Go struct corresponding to the {{.OriginalName}} event. type {{.GoName}} struct { + BlockNumber uint64 {{range .Definition.Members}} {{(CamelCase .Name)}} {{(GenerateGoNameForType .Type)}} {{- end}} @@ -660,6 +661,7 @@ func (p *EventParser) Parse(event RawEvent) (ParsedEvent, error) { if parseErr != nil { return defaultResult, parseErr } + parsedEvent.BlockNumber = event.BlockNumber return ParsedEvent{Name: {{.EventNameVar}}, Event: parsedEvent}, nil } {{- end}} diff --git a/version/version.go b/version/version.go index bbdd9fb..bbe96c6 100644 --- a/version/version.go +++ b/version/version.go @@ -1,3 +1,3 @@ package version -var SeerVersion string = "0.1.1" +var SeerVersion string = "0.1.2"