From 80ff0b0564f2ec5adbafeeb1cba9042a6d76d29d Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Wed, 17 Mar 2021 00:18:50 -0400 Subject: [PATCH] Improve setting of VRK multisigs --- cmd/lotus-seed/genesis.go | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/cmd/lotus-seed/genesis.go b/cmd/lotus-seed/genesis.go index 6f2c22147..d5f1d5ad6 100644 --- a/cmd/lotus-seed/genesis.go +++ b/cmd/lotus-seed/genesis.go @@ -334,11 +334,6 @@ var genesisSetVRKCmd = &cli.Command{ return err } - csvf, err := homedir.Expand(cctx.Args().Get(1)) - if err != nil { - return err - } - var template genesis.Template b, err := ioutil.ReadFile(genf) if err != nil { @@ -363,6 +358,10 @@ var genesisSetVRKCmd = &cli.Command{ Meta: am.ActorMeta(), } } else if cctx.IsSet("multisig") { + csvf, err := homedir.Expand(cctx.String("multisig")) + if err != nil { + return err + } entries, err := parseMultisigCsv(csvf) if err != nil { @@ -431,11 +430,6 @@ var genesisSetRemainderCmd = &cli.Command{ return err } - csvf, err := homedir.Expand(cctx.Args().Get(1)) - if err != nil { - return err - } - var template genesis.Template b, err := ioutil.ReadFile(genf) if err != nil { @@ -460,6 +454,10 @@ var genesisSetRemainderCmd = &cli.Command{ Meta: am.ActorMeta(), } } else if cctx.IsSet("multisig") { + csvf, err := homedir.Expand(cctx.String("multisig")) + if err != nil { + return err + } entries, err := parseMultisigCsv(csvf) if err != nil {