diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2018-04-10 19:12:07 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-04-10 19:12:07 +0800 |
commit | c7ab3e5544a3293819957281ecb7cfc08b4e9813 (patch) | |
tree | d1b8c3b8557dbca84b4d1cb6a13d78fb9fe17b86 /cmd | |
parent | 149f706fdee89877efd6ca6e168a9a20aaf61a0c (diff) | |
download | go-tangerine-c7ab3e5544a3293819957281ecb7cfc08b4e9813.tar go-tangerine-c7ab3e5544a3293819957281ecb7cfc08b4e9813.tar.gz go-tangerine-c7ab3e5544a3293819957281ecb7cfc08b4e9813.tar.bz2 go-tangerine-c7ab3e5544a3293819957281ecb7cfc08b4e9813.tar.lz go-tangerine-c7ab3e5544a3293819957281ecb7cfc08b4e9813.tar.xz go-tangerine-c7ab3e5544a3293819957281ecb7cfc08b4e9813.tar.zst go-tangerine-c7ab3e5544a3293819957281ecb7cfc08b4e9813.zip |
common: delete StringToAddress, StringToHash (#16436)
* common: delete StringToAddress, StringToHash
These functions are confusing because they don't parse hex, but use the
bytes of the string. This change removes them, replacing all uses of
StringToAddress(s) by BytesToAddress([]byte(s)).
* eth/filters: remove incorrect use of common.BytesToAddress
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/evm/runner.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/evm/runner.go b/cmd/evm/runner.go index c13e9fb33..2d9d31fb0 100644 --- a/cmd/evm/runner.go +++ b/cmd/evm/runner.go @@ -84,8 +84,8 @@ func runCmd(ctx *cli.Context) error { debugLogger *vm.StructLogger statedb *state.StateDB chainConfig *params.ChainConfig - sender = common.StringToAddress("sender") - receiver = common.StringToAddress("receiver") + sender = common.BytesToAddress([]byte("sender")) + receiver = common.BytesToAddress([]byte("receiver")) ) if ctx.GlobalBool(MachineFlag.Name) { tracer = NewJSONLogger(logconfig, os.Stdout) |