Skip to content
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

fix: Fix initialization for WrongAmountType error #532

Merged
merged 2 commits into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading