trezor / python-trezor

:snake: Don't use this repo, use the new monorepo instead:
https://github.com/trezor/trezor-firmware
GNU Lesser General Public License v3.0
201 stars 194 forks source link

Fix TX fetching #369

Closed yura-pakhuchiy closed 5 years ago

yura-pakhuchiy commented 5 years ago
TypeError: Object of type 'Decimal' is not JSON serializable
matejcik commented 5 years ago

I'm pretty sure that changing fetch format is a wrong place to fix a problem that occurs when serializing.

How did you encounter this error?

yura-pakhuchiy commented 5 years ago

Just delete any prefetched transaction from txcache and run test which uses it. The code will fail to save it after fetching and test will fail.

matejcik commented 5 years ago

closing, as this part will be reworked anyway.