1
0
This commit is contained in:
ThomasV
2016-03-20 19:05:38 +01:00
parent 753a28b452
commit 94dbfe6791
3 changed files with 8 additions and 5 deletions

View File

@@ -872,8 +872,7 @@ def tx_from_str(txt):
except:
is_hex = False
if is_hex:
return Transaction(txt)
return txt
tx_dict = json.loads(str(txt))
assert "hex" in tx_dict.keys()
tx = Transaction(tx_dict["hex"])
return tx
return tx_dict["hex"]