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.

Errors in tutorial 02_send_data.py #344

Open
@fprotopapa

Description

@fprotopapa

Bug description

Tutorial 02_send_data.py not working as expected:

  1. Creating Iota object generates error because of unexpected argument 'devnet'
  2. Address.random() misses required argument length
  3. Sending message throws error because of wrong min. weight magnitude (req: 14 and exp:9)
  4. Link to check transaction is not working

Version

Which version of the library are you running?

  • PyOTA Version: 2.1.0
  • Python Version: 3.8.8

IOTA network

Which node are you connected to and which IOTA network is it in?

Environment

What operating system are you using?

  • Operating system: Win 10

Errors

api = Iota('https://nodes.devnet.iota.org:443', devnet=True)
TypeError: init() got an unexpected keyword argument 'devnet'
2.
my_address = Address.random()
TypeError: random() missing 1 required positional argument: 'length'
3.
raise with_context(
iota.adapter.BadApiResponse: 400 response from node: Wrong MinWeightMagnitude. requested: 14, expected: 9
4. https://utils.iota.org/transaction/.../devnet

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions