diff options
author | Martin Holst Swende <martin@swende.se> | 2017-08-15 17:31:36 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-08-15 17:31:36 +0800 |
commit | 30402430427854b61e9836850d6163554c4c667d (patch) | |
tree | 92ac9dcf39706f40a72e3b740daaf280269dff47 /cmd/evm/main.go | |
parent | 9facf6423dbd38ebd7fbd9069cbcb98b0fd243c2 (diff) | |
download | dexon-30402430427854b61e9836850d6163554c4c667d.tar.gz dexon-30402430427854b61e9836850d6163554c4c667d.tar.zst dexon-30402430427854b61e9836850d6163554c4c667d.zip |
cmd/evm: add --receiver, support code from stdin (#14873)
Diffstat (limited to 'cmd/evm/main.go')
-rw-r--r-- | cmd/evm/main.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go index 1892ae3d3..a2e3b048e 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -53,7 +53,7 @@ var ( } CodeFileFlag = cli.StringFlag{ Name: "codefile", - Usage: "file containing EVM code", + Usage: "File containing EVM code. If '-' is specified, code is read from stdin ", } GasFlag = cli.Uint64Flag{ Name: "gas", @@ -102,6 +102,10 @@ var ( Name: "sender", Usage: "The transaction origin", } + ReceiverFlag = cli.StringFlag{ + Name: "receiver", + Usage: "The transaction receiver (execution context)", + } DisableMemoryFlag = cli.BoolFlag{ Name: "nomemory", Usage: "disable memory output", @@ -131,6 +135,7 @@ func init() { GenesisFlag, MachineFlag, SenderFlag, + ReceiverFlag, DisableMemoryFlag, DisableStackFlag, } |