From 3f4429a5efc03b3cb8d7938403252001813a858e Mon Sep 17 00:00:00 2001 From: zenground0 Date: Mon, 10 Jul 2023 15:59:19 -0600 Subject: [PATCH] match json parsing --- cmd/lotus-shed/cron-count.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/lotus-shed/cron-count.go b/cmd/lotus-shed/cron-count.go index 90372db9d..330abb234 100644 --- a/cmd/lotus-shed/cron-count.go +++ b/cmd/lotus-shed/cron-count.go @@ -26,8 +26,9 @@ var cronWcCmd = &cli.Command{ } type DeadlineRef struct { - AddrStr string - Height abi.ChainEpoch + To string + Height abi.ChainEpoch + Gas json.RawMessage } type DeadlineSummary struct { @@ -89,7 +90,7 @@ var minerDeadlinePartitionMeasurementCmd = &cli.Command{ if err != nil { return xerrors.Errorf("failed to get tipset at epoch %d: %w", ref.Height, err) } - addr, err := address.NewFromString(ref.AddrStr) + addr, err := address.NewFromString(ref.To) if err != nil { return xerrors.Errorf("faield to get address from input string: %w", err) }