mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
cmd/evm: fix compile and vet errors
This commit is contained in:
parent
9a4608b5d3
commit
fe6fb79f9c
1 changed files with 4 additions and 4 deletions
|
|
@ -152,15 +152,15 @@ func run(ctx *cli.Context) error {
|
||||||
var err error
|
var err error
|
||||||
hexcode, err = ioutil.ReadFile(ctx.GlobalString(CodeFileFlag.Name))
|
hexcode, err = ioutil.ReadFile(ctx.GlobalString(CodeFileFlag.Name))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Could not load code from file: %v", err)
|
fmt.Printf("Could not load code from file: %v\n", err)
|
||||||
os.exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var err error
|
var err error
|
||||||
hexcode, err = ioutil.ReadAll(os.Stdin)
|
hexcode, err = ioutil.ReadAll(os.Stdin)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Could not load code from stdin: %v", err)
|
fmt.Printf("Could not load code from stdin: %v\n", err)
|
||||||
os.exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
code = common.Hex2Bytes(string(hexcode[:]))
|
code = common.Hex2Bytes(string(hexcode[:]))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue