Merge pull request #8202 from filecoin-project/arajasek-patch-1

fix: shed: diff command
This commit is contained in:
ZenGround0 2022-03-01 11:54:26 -07:00 committed by GitHub
commit 8091e7086e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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