Skip to content

Commit

Permalink
Add error when accessing expired entry (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh authored Jul 11, 2023
1 parent 5de7fe8 commit 257dea1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Stellar-transaction.x
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,8 @@ enum InvokeHostFunctionResultCode
// codes considered as "failure" for the operation
INVOKE_HOST_FUNCTION_MALFORMED = -1,
INVOKE_HOST_FUNCTION_TRAPPED = -2,
INVOKE_HOST_FUNCTION_RESOURCE_LIMIT_EXCEEDED = -3
INVOKE_HOST_FUNCTION_RESOURCE_LIMIT_EXCEEDED = -3,
INVOKE_HOST_FUNCTION_ENTRY_EXPIRED = -4
};

union InvokeHostFunctionResult switch (InvokeHostFunctionResultCode code)
Expand All @@ -1803,6 +1804,7 @@ case INVOKE_HOST_FUNCTION_SUCCESS:
case INVOKE_HOST_FUNCTION_MALFORMED:
case INVOKE_HOST_FUNCTION_TRAPPED:
case INVOKE_HOST_FUNCTION_RESOURCE_LIMIT_EXCEEDED:
case INVOKE_HOST_FUNCTION_ENTRY_EXPIRED:
void;
};

Expand Down

0 comments on commit 257dea1

Please sign in to comment.