Skip to content

Commit

Permalink
refactor: use hex ints directly
Browse files Browse the repository at this point in the history
Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com>
  • Loading branch information
antazoey and fubuloubu authored May 31, 2023
1 parent 49c7997 commit 5c53319
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ape_solidity/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ def __init__(self):


class RuntimeErrorType(Enum):
ASSERTION_ERROR = 1 # 0x1
ARITHMETIC_UNDER_OR_OVERFLOW = 17 # 0x11
DIVISION_BY_ZERO_ERROR = 18 # 0x12
ENUM_CONVERSION_OUT_OF_BOUNDS = 33 # 0x21
INCORRECTLY_ENCODED_STORAGE_BYTE_ARRAY = 34 # 0x22
POP_ON_EMPTY_ARRAY = 49 # 0x31
INDEX_OUT_OF_BOUNDS_ERROR = 50 # 0x32
MEMORY_OVERFLOW_ERROR = 65 # 0x41
ZERO_INITIALIZED_VARIABLE = 81 # 0x51
ASSERTION_ERROR = 0x1
ARITHMETIC_UNDER_OR_OVERFLOW = 0x11
DIVISION_BY_ZERO_ERROR = 0x12
ENUM_CONVERSION_OUT_OF_BOUNDS = 0x21
INCORRECTLY_ENCODED_STORAGE_BYTE_ARRAY = 0x22
POP_ON_EMPTY_ARRAY = 0x31
INDEX_OUT_OF_BOUNDS_ERROR = 0x32
MEMORY_OVERFLOW_ERROR = 0x41
ZERO_INITIALIZED_VARIABLE = 0x51


class SolidityRuntimeError(ContractLogicError):
Expand Down

0 comments on commit 5c53319

Please sign in to comment.