Fix internal call halt on any Exception push zero

This commit is contained in:
Roman Mandeleil 2015-01-06 16:42:51 +02:00
parent ab258b3fc9
commit 832c24014d
1 changed files with 2 additions and 4 deletions

View File

@ -351,8 +351,7 @@ public class Program {
} }
if (result != null && if (result != null &&
result.getException() != null && result.getException() != null) {
result.getException() instanceof Program.OutOfGasException) {
logger.debug("contract run halted by Exception: contract: [{}], exception: [{}]", logger.debug("contract run halted by Exception: contract: [{}], exception: [{}]",
Hex.toHexString(newAddress), Hex.toHexString(newAddress),
result.getException()); result.getException());
@ -464,8 +463,7 @@ public class Program {
} }
if (result != null && if (result != null &&
result.getException() != null && result.getException() != null) {
result.getException() instanceof Program.OutOfGasException) {
gasLogger.debug("contract run halted by Exception: contract: [{}], exception: [{}]", gasLogger.debug("contract run halted by Exception: contract: [{}], exception: [{}]",
Hex.toHexString(contextAddress), Hex.toHexString(contextAddress),
result.getException()); result.getException());