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

Errors in tutorial 02_send_data.py #344

Open
fprotopapa opened this issue Oct 22, 2021 · 0 comments
Open

Errors in tutorial 02_send_data.py #344

fprotopapa opened this issue Oct 22, 2021 · 0 comments
Labels

Comments

@fprotopapa
Copy link

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

@fprotopapa fprotopapa added the bug label Oct 22, 2021
fprotopapa added a commit to fprotopapa/iota.py that referenced this issue Oct 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant