Merge remote-tracking branch 'origin/master' into next
This commit is contained in:
commit
64e67df881
@ -57,7 +57,7 @@ type FullNode interface {
|
|||||||
ChainGetParentMessages(ctx context.Context, blockCid cid.Cid) ([]Message, error)
|
ChainGetParentMessages(ctx context.Context, blockCid cid.Cid) ([]Message, error)
|
||||||
|
|
||||||
// ChainGetTipSetByHeight looks back for a tipset at the specified epoch.
|
// ChainGetTipSetByHeight looks back for a tipset at the specified epoch.
|
||||||
// If there are no blocks at the specified epoch, a tipset at higher epoch
|
// If there are no blocks at the specified epoch, a tipset at an earlier epoch
|
||||||
// will be returned.
|
// will be returned.
|
||||||
ChainGetTipSetByHeight(context.Context, abi.ChainEpoch, types.TipSetKey) (*types.TipSet, error)
|
ChainGetTipSetByHeight(context.Context, abi.ChainEpoch, types.TipSetKey) (*types.TipSet, error)
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ var paychGetCmd = &cli.Command{
|
|||||||
return ShowHelp(cctx, fmt.Errorf("failed to parse to address: %s", err))
|
return ShowHelp(cctx, fmt.Errorf("failed to parse to address: %s", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
amt, err := types.BigFromString(cctx.Args().Get(2))
|
amt, err := types.ParseFIL(cctx.Args().Get(2))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ShowHelp(cctx, fmt.Errorf("parsing amount failed: %s", err))
|
return ShowHelp(cctx, fmt.Errorf("parsing amount failed: %s", err))
|
||||||
}
|
}
|
||||||
@ -58,7 +58,7 @@ var paychGetCmd = &cli.Command{
|
|||||||
|
|
||||||
ctx := ReqContext(cctx)
|
ctx := ReqContext(cctx)
|
||||||
|
|
||||||
info, err := api.PaychGet(ctx, from, to, amt)
|
info, err := api.PaychGet(ctx, from, to, types.BigInt(amt))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user