cmd/evm: trim code input

This commit is contained in:
Jeffrey Wilcke 2017-02-19 22:52:34 +01:00
parent 75bb2958cc
commit 4e5ae46e74
No known key found for this signature in database
GPG key ID: 63FF149CD6945F9E

View file

@ -18,6 +18,7 @@
package main
import (
"bytes"
"fmt"
"io/ioutil"
"math/big"
@ -153,7 +154,7 @@ func run(ctx *cli.Context) error {
os.Exit(1)
}
}
code = common.Hex2Bytes(string(hexcode[:]))
code = common.Hex2Bytes(string(bytes.TrimRight(hexcode, "\n")))
}
if ctx.GlobalBool(CreateFlag.Name) {