mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
Using FailureType for Failure messages
This commit is contained in:
parent
1f7bfa556a
commit
80a794cdfd
@ -63,6 +63,17 @@ extend google.protobuf.FieldOptions {
|
||||
// Definition of custom field types
|
||||
//
|
||||
|
||||
enum FailureType {
|
||||
Failure_UnexpectedMessage = 1;
|
||||
Failure_ButtonExpected = 2;
|
||||
Failure_SyntaxError = 3;
|
||||
Failure_ActionCancelled = 4;
|
||||
Failure_PinExpected = 5;
|
||||
Failure_PinCancelled = 6;
|
||||
Failure_PinInvalid = 7;
|
||||
Failure_FirmwareDataIncompatibility = 99;
|
||||
}
|
||||
|
||||
// Specifies which script will be used for given transaction output.
|
||||
enum ScriptType {
|
||||
PAYTOADDRESS = 0;
|
||||
@ -160,7 +171,7 @@ message Success {
|
||||
|
||||
// Response object defining failure of the previous request
|
||||
message Failure {
|
||||
optional int32 code = 1; // May contain computer-readable definition of the error state
|
||||
optional FailureType code = 1; // May contain computer-readable definition of the error state
|
||||
optional bytes message = 2; // May contain human-readable message of the error state
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user