-
Notifications
You must be signed in to change notification settings - Fork 113
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
Clean up transaction result code #720
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does anything need to be updated in org.aion.mcf.blockchain.TxResponse
and org.aion.api.server.ApiTxResponse
as a result of these changes?
INSUFFICIENT_BALANCE(10), | ||
CONTRACT_ALREADY_EXISTS(11), | ||
INTERNAL_ERROR(-1); | ||
STATIC_MODE_ERROR(8), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a comment explaining the STATIC_MODE_ERROR
as well
@@ -38,19 +38,36 @@ | |||
byte[] output; | |||
|
|||
public enum ResultCode { | |||
/* | |||
* Indicates a successful transaction. | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor formatting issue: missing the plugin
I think this PR was supposed to be updated to go to the |
Description
This PR intends to clean up the transaction result code:
ReasonCode
with the error code defined in the C interface;INTERNAL_ERROR
;STATIC_MODE_ERROR
misinterpretation.Type of change
Insert x into the following checkboxes to confirm (eg. [x]):