match json parsing

This commit is contained in:
zenground0 2023-07-10 15:59:19 -06:00
parent 921bdb85ab
commit 3f4429a5ef

View File

@ -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)
}