Skip to content

Commit

Permalink
Fix type errors in template.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtzmn committed Nov 10, 2022
1 parent 06b2143 commit 544fadd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions algosdk/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from . import error, encoding, constants, transaction, logic, account
from Cryptodome.Hash import SHA256, keccak
import base64
from typing import Optional


class Template:
Expand Down Expand Up @@ -329,8 +330,8 @@ def __init__(
receiver: str,
amount: int,
first_valid: int,
last_valid: int = None,
close_remainder_address: str = None,
last_valid: Optional[int] = None,
close_remainder_address: Optional[str] = None,
):
self.lease_value = bytes(
[random.randint(0, 255) for x in range(constants.lease_length)]
Expand Down

0 comments on commit 544fadd

Please sign in to comment.