Skip to content

Commit

Permalink
fix: Fix initialization for WrongAmountType error (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
algolog committed Feb 20, 2024
1 parent 9383b8b commit 53d5fb2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions algosdk/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self):


class WrongAmountType(Exception):
def __init(self):
def __init__(self):
Exception.__init__(self, "amount (amt) must be a non-negative integer")


Expand All @@ -70,7 +70,7 @@ def __init__(self):
class WrongHashLengthError(Exception):
"""General error that is normally changed to be more specific"""

def __init(self):
def __init__(self):
Exception.__init__(self, "length must be 32 bytes")


Expand All @@ -85,22 +85,22 @@ def __init__(self):


class WrongMetadataLengthError(Exception):
def __init(self):
def __init__(self):
Exception.__init__(self, "metadata length must be 32 bytes")


class WrongLeaseLengthError(Exception):
def __init(self):
def __init__(self):
Exception.__init__(self, "lease length must be 32 bytes")


class WrongNoteType(Exception):
def __init(self):
def __init__(self):
Exception.__init__(self, 'note must be of type "bytes"')


class WrongNoteLength(Exception):
def __init(self):
def __init__(self):
Exception.__init__(self, "note length must be at most 1024")


Expand Down

0 comments on commit 53d5fb2

Please sign in to comment.