Skip to content

Commit

Permalink
Show lineno of base_type_conversion error
Browse files Browse the repository at this point in the history
Fix #498
  • Loading branch information
Adhika Setya Pramudita committed Nov 23, 2017
1 parent 30fdc6a commit f24499a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viper/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,15 +653,15 @@ def pack_logging_topics(event_id, args, topics_types, context):
topics.append(byte_array_to_num(input, arg, 'num256', size))
else:
input = unwrap_location(input)
input = base_type_conversion(input, input.typ, typ)
input = base_type_conversion(input, input.typ, typ, arg)
topics.append(input)
return topics


def pack_args_by_32(holder, maxlen, arg, typ, context, placeholder):
if isinstance(typ, BaseType):
input = parse_expr(arg, context)
input = base_type_conversion(input, input.typ, typ)
input = base_type_conversion(input, input.typ, typ, arg)
holder.append(LLLnode.from_list(['mstore', placeholder, input], typ=typ, location='memory'))
elif isinstance(typ, ByteArrayType):
bytez = b''
Expand Down

0 comments on commit f24499a

Please sign in to comment.