Skip to content

Commit

Permalink
fix debug_traceTransaction crashed issue (ethereum#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro authored Jun 30, 2020
1 parent 11bc803 commit 5e4f578
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/vm/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,11 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
// as every returning call will return new data anyway.
in.returnData = nil

// TODO temporary fix for issue
// Don't bother with the execution if there's no code.
if len(contract.Code) == 0 {
return nil, nil
}
//if len(contract.Code) == 0 {
// return nil, nil
//}

var (
op OpCode // current opcode
Expand Down

0 comments on commit 5e4f578

Please sign in to comment.