diff --git a/cli/paych.go b/cli/paych.go index 070645152..7a4462e11 100644 --- a/cli/paych.go +++ b/cli/paych.go @@ -29,7 +29,7 @@ var paychGetCmd = &cli.Command{ ArgsUsage: "[fromAddress toAddress amount]", Action: func(cctx *cli.Context) error { if cctx.Args().Len() != 3 { - return fmt.Errorf("must pass three arguments: ") + return fmt.Errorf("must pass three arguments: ") } from, err := address.NewFromString(cctx.Args().Get(0)) @@ -42,9 +42,9 @@ var paychGetCmd = &cli.Command{ return 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 { - return fmt.Errorf("parsing amount failed: %s", err) + return fmt.Errorf("parsing amount as whole FIL failed: %s", err) } api, closer, err := GetFullNodeAPI(cctx) @@ -55,7 +55,7 @@ var paychGetCmd = &cli.Command{ ctx := ReqContext(cctx) - info, err := api.PaychGet(ctx, from, to, amt) + info, err := api.PaychGet(ctx, from, to, types.BigInt(amt)) if err != nil { return err }