The script is here: https://github.com/lhartikk/GenesisH0
Function fragment:
def create_transaction(input_script, output_script,options): transaction = Struct("transaction", Bytes("version", 4), Byte("num_inputs"), StaticField("prev_output", 32), UBInt32('prev_out_idx'), Byte('input_script_len'), Bytes('input_script', len(input_script)), UBInt32('sequence'), Byte('num_outputs'), Bytes('out_value', 8), Byte('output_script_len'), Bytes('output_script', 0x43), UBInt32('locktime')) Swears:
File "genesis.py", line 74, in create_transaction Bytes("version",4), TypeError: __init__() takes exactly 2 arguments (3 given) , I remove ", 4", swears on the following line:
File "genesis.py", line 75, in create_transaction Byte("num_inputs"), TypeError: 'FormatField' object is not callable Question: What am I doing wrong? Wrong version of python or do I need to upload some kind of extension? The script is laid out the same laid out, it means he worked for someone ...