From c047f519010b47515fa33069979cf1d3a7460325 Mon Sep 17 00:00:00 2001 From: Jeremy Letang Date: Thu, 25 Apr 2024 08:17:10 +0100 Subject: [PATCH] chore: add logs for market and governance error Signed-off-by: Jeremy Letang --- core/types/snapshot_nodes.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/types/snapshot_nodes.go b/core/types/snapshot_nodes.go index a9d9ddc3526..db7ab9d27f4 100644 --- a/core/types/snapshot_nodes.go +++ b/core/types/snapshot_nodes.go @@ -2321,7 +2321,10 @@ func (g GovernanceNode) IntoProto() *snapshot.GovernanceNode { } func ProposalDataFromProto(pp *snapshot.ProposalData) *ProposalData { - p, _ := ProposalFromProto(pp.Proposal) + p, err := ProposalFromProto(pp.Proposal) + if err != nil { + fmt.Printf("DANIEL ERROR: %v\n", err) + } ret := ProposalData{ Proposal: p, Yes: make([]*Vote, 0, len(pp.Yes)), @@ -3002,7 +3005,10 @@ func ExecMarketFromProto(em *snapshot.Market) *ExecMarket { } } - m, _ := MarketFromProto(em.Market) + m, err := MarketFromProto(em.Market) + if err != nil { + fmt.Printf("DANIEL ERROR: %v\n", err) + } ret := ExecMarket{ Market: m, PriceMonitor: PriceMonitorFromProto(em.PriceMonitor),