Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

TryteString.random() should use cls.LEN as its default length, when available #166

@todofixthis

Description

@todofixthis

When calling a class' random() method, the length parameter should only be required if the class has no LEN attribute.

Example:

>>> from iota import Address
>>> Address.random()

# Expected Result
Address(b'... 81 random trytes ...')

# Actual Result
TypeError: random() missing 1 required positional argument: 'length'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions