From 332a8d84c872ef2a659ed4fb225cd8e66a88a9fd Mon Sep 17 00:00:00 2001 From: Fornax <23104993+fornax2@users.noreply.github.com> Date: Thu, 31 Oct 2024 17:13:46 -0300 Subject: [PATCH] Snapshot field updated from string -> int64 --- rocketpool-daemon/common/voting/utils.go | 2 +- shared/types/voting.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rocketpool-daemon/common/voting/utils.go b/rocketpool-daemon/common/voting/utils.go index 97c4abfa7..206d0b839 100644 --- a/rocketpool-daemon/common/voting/utils.go +++ b/rocketpool-daemon/common/voting/utils.go @@ -94,7 +94,7 @@ type snapshotProposal struct { Start int64 `json:"start"` End int64 `json:"end"` State string `json:"state"` - Snapshot string `json:"snapshot"` + Snapshot int64 `json:"snapshot"` Author string `json:"author"` Choices []string `json:"choices"` Scores []float64 `json:"scores"` diff --git a/shared/types/voting.go b/shared/types/voting.go index 60d613550..7c835274b 100644 --- a/shared/types/voting.go +++ b/shared/types/voting.go @@ -16,7 +16,7 @@ type SnapshotProposal struct { Start time.Time `json:"start"` End time.Time `json:"end"` State ProposalState `json:"state"` - Snapshot string `json:"snapshot"` + Snapshot int64 `json:"snapshot"` Author string `json:"author"` Choices []string `json:"choices"` Scores []float64 `json:"scores"`