From f0d80211bab2f73fa63ccc89b9258b5a33ef495c Mon Sep 17 00:00:00 2001 From: fudongbai <296179868@qq.com> Date: Sun, 28 Jun 2020 16:42:31 +0800 Subject: [PATCH] fix debug_traceTransaction crashed issue --- core/vm/interpreter.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index 5d213acc83..949a39dacf 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -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