diff --git a/zip_0143.py b/zip_0143.py index 642af0b..2ccd578 100644 --- a/zip_0143.py +++ b/zip_0143.py @@ -137,11 +137,11 @@ def main(): test_vectors.append({ 'tx': bytes(tx), - 'scriptCode': scriptCode.raw(), - 'nIn': nIn, - 'nHashType': nHashType, + 'script_code': scriptCode.raw(), + 'transparent_input': nIn, + 'hash_type': nHashType, 'amount': amount, - 'consensusBranchId': consensusBranchId, + 'consensus_branch_id': consensusBranchId, 'sighash': sighash, }) @@ -150,11 +150,11 @@ def main(): 'zip_0143', ( ('tx', {'rust': 'Vec', 'bitcoin_flavoured': False}), - ('scriptCode', 'Vec'), - ('nIn', 'u32'), - ('nHashType', 'u32'), + ('script_code', 'Vec'), + ('transparent_input', 'u32'), + ('hash_type', 'u32'), ('amount', 'u64'), - ('consensusBranchId', 'u32'), + ('consensus_branch_id', 'u32'), ('sighash', '[u8; 32]'), ), test_vectors,