diff --git a/cli/chain.go b/cli/chain.go index 20a9ff654..8e8bada52 100644 --- a/cli/chain.go +++ b/cli/chain.go @@ -1667,6 +1667,9 @@ var ChainInvokeEVMCmd = &cli.Command{ &cli.StringFlag{ Name: "from", Usage: "optionally specify the account to use for sending the exec message", + }, &cli.IntFlag{ + Name: "value", + Usage: "optionally specify the value to be sent with the invokation message", }, }, Action: func(cctx *cli.Context) error { @@ -1727,10 +1730,11 @@ var ChainInvokeEVMCmd = &cli.Command{ fromAddr = addr } + val := abi.NewTokenAmount(cctx.Int64("value")) msg := &types.Message{ To: addr, From: fromAddr, - Value: big.Zero(), + Value: val, Method: abi.MethodNum(2), Params: params, } diff --git a/documentation/en/cli-lotus.md b/documentation/en/cli-lotus.md index d17b915e3..35bc11760 100644 --- a/documentation/en/cli-lotus.md +++ b/documentation/en/cli-lotus.md @@ -2454,7 +2454,8 @@ USAGE: lotus chain invoke-evm-actor [command options] address contract-entry-point [input-data] OPTIONS: - --from value optionally specify the account to use for sending the exec message + --from value optionally specify the account to use for sending the exec message + --value value optionally specify the value to be sent with the invokation message (default: 0) ```