From 160f9b06a58555e6e646f9744adbbb6279bc5f5c Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sat, 24 Feb 2018 11:09:10 +0100 Subject: [PATCH] Fix variable typo in generate-wire.py --- tools/generate-wire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/generate-wire.py b/tools/generate-wire.py index 74fff3d6f992..2f59f32f4934 100755 --- a/tools/generate-wire.py +++ b/tools/generate-wire.py @@ -446,7 +446,7 @@ def print_printwire_array(self, subcalls, basetype, f, num_elems): subcalls.append('\t\t{} v;'.format(f.fieldtype.name)) if f.fieldtype.is_assignable(): subcalls.append('\t\tv = fromwire_{}(&cursor, plen);' - .format(name, basetype)) + .format(f.fieldtype.name, basetype)) else: # We don't handle this yet! assert(basetype not in varlen_structs)