Skip to content

Commit ad30d13

Browse files
committed
fix(interface): throw out of time exception in any case
1 parent 5c615f7 commit ad30d13

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

framework/src/main/java/org/tron/core/Wallet.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3026,7 +3026,8 @@ public Transaction callConstantContract(TransactionCapsule trxCap,
30263026
vmActuator.execute(context);
30273027

30283028
ProgramResult result = context.getProgramResult();
3029-
if (!isEstimating && result.getException() != null) {
3029+
if (!isEstimating && result.getException() != null
3030+
|| result.getException() instanceof Program.OutOfTimeException) {
30303031
RuntimeException e = result.getException();
30313032
logger.warn("Constant call has an error {}", e.getMessage());
30323033
throw e;

0 commit comments

Comments
 (0)