Fix variable typo in generate-wire.py

This commit is contained in:
practicalswift 2018-02-24 11:09:10 +01:00 committed by Christian Decker
parent bb12c234f2
commit 160f9b06a5

View File

@ -446,7 +446,7 @@ class Message(object):
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)