Ver Fonte

fix debug_traceTransaction crashed issue (#13)

zjubfd há 5 anos atrás
pai
commit
5e4f5785c7
1 ficheiros alterados com 4 adições e 3 exclusões
  1. 4 3
      core/vm/interpreter.go

+ 4 - 3
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