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

api.get_tips()['hashes'] contains Addresses instead of TransactionHashes #130

Closed
za-uz opened this issue Jan 5, 2018 · 2 comments
Closed
Labels

Comments

@za-uz
Copy link

za-uz commented Jan 5, 2018

import iota
api = iota.api.Iota('http://localhost:14265')
tips = api.get_tips()
hashes = tips['hashes']

print(type(hashes[0]))

# result is <class 'iota.types.Address'>

Bug is probably somewhere here in line 45.

@todofixthis todofixthis added the bug label Jan 6, 2018
@todofixthis
Copy link
Contributor

Hey @schrotti264 thank you for reporting this issue, and for resoarching the cause! I think you're right on the money; the response filter is coercing the result to the wrong type.

This should be quick to fix; I'll add this to the list for the next release.

@todofixthis
Copy link
Contributor

Scheduled for release: 2.0.4

Thanks for reporting this issue!

marko-k0 pushed a commit to marko-k0/iota.lib.py that referenced this issue Jul 28, 2018
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

2 participants