Actually use the multisig source flag

This commit is contained in:
Aayush Rajasekaran
2020-04-25 01:55:10 -04:00
parent 1565e10fff
commit c3b1cf19a4
+7 -2
View File
@@ -291,7 +291,12 @@ var msigProposeCmd = &cli.Command{
Name: "propose",
Usage: "Propose a multisig transaction",
ArgsUsage: "[multisigAddress destinationAddress value <methodName methodParams> (optional)]",
Flags: []cli.Flag{},
Flags: []cli.Flag{
&cli.StringFlag{
Name: "source",
Usage: "account to send the propose message from",
},
},
Action: func(cctx *cli.Context) error {
api, closer, err := GetFullNodeAPI(cctx)
if err != nil {
@@ -341,7 +346,7 @@ var msigProposeCmd = &cli.Command{
enc, err := actors.SerializeParams(&samsig.ProposeParams{
To: dest,
Value: abi.TokenAmount(types.BigInt(value)),
Value: types.BigInt(value),
Method: abi.MethodNum(method),
Params: params,
})