Actually use the multisig source flag
This commit is contained in:
parent
1565e10fff
commit
c3b1cf19a4
@ -291,7 +291,12 @@ var msigProposeCmd = &cli.Command{
|
|||||||
Name: "propose",
|
Name: "propose",
|
||||||
Usage: "Propose a multisig transaction",
|
Usage: "Propose a multisig transaction",
|
||||||
ArgsUsage: "[multisigAddress destinationAddress value <methodName methodParams> (optional)]",
|
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 {
|
Action: func(cctx *cli.Context) error {
|
||||||
api, closer, err := GetFullNodeAPI(cctx)
|
api, closer, err := GetFullNodeAPI(cctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -341,7 +346,7 @@ var msigProposeCmd = &cli.Command{
|
|||||||
|
|
||||||
enc, err := actors.SerializeParams(&samsig.ProposeParams{
|
enc, err := actors.SerializeParams(&samsig.ProposeParams{
|
||||||
To: dest,
|
To: dest,
|
||||||
Value: abi.TokenAmount(types.BigInt(value)),
|
Value: types.BigInt(value),
|
||||||
Method: abi.MethodNum(method),
|
Method: abi.MethodNum(method),
|
||||||
Params: params,
|
Params: params,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user