From 92c07f877bd97a18f082caf2cb84e7e1b7c1618e Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Sun, 27 Feb 2022 20:03:45 -0500 Subject: [PATCH] fix: shed: diff command --- cmd/lotus-shed/diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-shed/diff.go b/cmd/lotus-shed/diff.go index bcaa04122..d576f73b4 100644 --- a/cmd/lotus-shed/diff.go +++ b/cmd/lotus-shed/diff.go @@ -35,7 +35,7 @@ var diffStateTrees = &cli.Command{ return xerrors.Errorf("expected two state-tree roots") } - argA := cctx.Args().Get(1) + argA := cctx.Args().Get(0) rootA, err := cid.Parse(argA) if err != nil { return xerrors.Errorf("first state-tree root (%q) is not a CID: %w", argA, err)