Skip to content

Commit

Permalink
Merge ElementsProject#1286: Script: Move SCRIPT_ERR_COUNT
Browse files Browse the repository at this point in the history
f424312 Script: Move SCRIPT_ERR_COUNT (Christian Lewe)

Pull request description:

  Fix ElementsProject#1285

ACKs for top commit:
  delta1:
    ACK f424312

Tree-SHA512: b52a09c8da11bbfd11e82b0b7e18480eaa7f1948637c21385ad0307050b06e890244fef56e2f0747d5bb31bd6e3339b9f110f6872dff733493cb767c0fa09aa9
  • Loading branch information
delta1 committed Nov 13, 2023
2 parents 20c5630 + f424312 commit df8e572
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/script/script_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ typedef enum ScriptError_t
SCRIPT_ERR_OP_CODESEPARATOR,
SCRIPT_ERR_SIG_FINDANDDELETE,

SCRIPT_ERR_ERROR_COUNT,

// ELEMENTS:
SCRIPT_ERR_RANGEPROOF,
SCRIPT_ERR_PEDERSEN_TALLY,
Expand All @@ -96,10 +94,13 @@ typedef enum ScriptError_t
SCRIPT_ERR_INTROSPECT_INDEX_OUT_OF_BOUNDS,
SCRIPT_ERR_EXPECTED_8BYTES,
SCRIPT_ERR_ARITHMETIC64,
SCRIPT_ERR_ECMULTVERIFYFAIL
SCRIPT_ERR_ECMULTVERIFYFAIL,

/* Must go last */
SCRIPT_ERR_ERROR_COUNT
} ScriptError;

#define SCRIPT_ERR_LAST SCRIPT_ERR_ECMULTVERIFYFAIL
#define SCRIPT_ERR_LAST SCRIPT_ERR_ERROR_COUNT

std::string ScriptErrorString(const ScriptError error);

Expand Down

0 comments on commit df8e572

Please sign in to comment.