match json parsing
This commit is contained in:
parent
921bdb85ab
commit
3f4429a5ef
@ -26,8 +26,9 @@ var cronWcCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DeadlineRef struct {
|
type DeadlineRef struct {
|
||||||
AddrStr string
|
To string
|
||||||
Height abi.ChainEpoch
|
Height abi.ChainEpoch
|
||||||
|
Gas json.RawMessage
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeadlineSummary struct {
|
type DeadlineSummary struct {
|
||||||
@ -89,7 +90,7 @@ var minerDeadlinePartitionMeasurementCmd = &cli.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return xerrors.Errorf("failed to get tipset at epoch %d: %w", ref.Height, err)
|
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 {
|
if err != nil {
|
||||||
return xerrors.Errorf("faield to get address from input string: %w", err)
|
return xerrors.Errorf("faield to get address from input string: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user