PeerAssets / pypeerassets

Reference implementation of the PeerAssets protocol.
BSD 3-Clause "New" or "Revised" License
12 stars 16 forks source link

Refactor to Python 3.5+ super() implementation to match new btcpy #90

Closed youngpascal closed 6 years ago

youngpascal commented 6 years ago

https://github.com/PeerAssets/pypeerassets/blob/6a61d0552c73a4cc20f954930ab6d52b24d5828f/pypeerassets/transactions.py#L44

def make_raw_transaction(inputs: list, outputs: list, locktime=Locktime(0),
                         timestamp: int=int(time()), version=1):
    '''create raw transaction'''
    transaction = Transaction(version, timestamp, inputs, outputs, locktime)
    return MutableTransaction(transaction)

This should do it.