1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 03:18:20 +00:00

Fixed bin_output

This commit is contained in:
slush0 2014-04-07 16:25:03 +02:00
parent 345f6d6814
commit ff77261a61

View File

@ -68,7 +68,7 @@ def bitcore_tx(url):
i.sequence = vin['sequence'] i.sequence = vin['sequence']
for vout in data['vout']: for vout in data['vout']:
o = t.outputs.add() o = t.bin_outputs.add()
o.amount = int(vout['value'] * 100000000) o.amount = int(vout['value'] * 100000000)
asm = vout['scriptPubKey']['asm'].split(' ') asm = vout['scriptPubKey']['asm'].split(' ')
asm = [ opcode_serialize(x) for x in asm ] asm = [ opcode_serialize(x) for x in asm ]