vyper Version (output of vyper --version OR linkable commit hash vyperlang/vyper@): vyperlang/vyper@b43fface148b45cbd2c90b5d24f77398a63745b5
Issue Description
In Stmt._assert_reason(), a buffer of length 64 + msg_ir.typ.memory_bytes_required is allocated given that the type of
the message is TupleT(StringT[N],), this accounts for:
32 bytes for the method id.
32 bytes for the head of the string according to the ABI.
msg_ir.typ.memory_bytes_required for the String itself.
A similar pattern as what is used in _pack_arguments() could be
beneficial in showing the different components of the buffer's length.
if fn_type.return_type is not None:
...
else:
buflen = args_abi_t.size_bound()
buflen += 32 # padding for the method id
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@Issue Description
In
Stmt._assert_reason()
, a buffer of length64 + msg_ir.typ.memory_bytes_required
is allocated given that the type of the message isTupleT(StringT[N],)
, this accounts for:msg_ir.typ.memory_bytes_required
for the String itself.A similar pattern as what is used in
_pack_arguments()
could be beneficial in showing the different components of the buffer's length.