Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SST_CONTRACT_ERROR to SCStatusType #29

Merged
merged 1 commit into from
Sep 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Stellar-contract.x
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ enum SCStatusType
SST_HOST_FUNCTION_ERROR = 4,
SST_HOST_STORAGE_ERROR = 5,
SST_HOST_CONTEXT_ERROR = 6,
SST_VM_ERROR = 7
SST_VM_ERROR = 7,
SST_CONTRACT_ERROR = 8
// TODO: add more
};

Expand Down Expand Up @@ -179,6 +180,8 @@ case SST_HOST_CONTEXT_ERROR:
SCHostContextErrorCode contextCode;
case SST_VM_ERROR:
SCVmErrorCode vmCode;
case SST_CONTRACT_ERROR:
uint32 contractCode;
};

union SCVal switch (SCValType type)
Expand Down