From 2173ad25a92156be73c8ef91e0fff285eb4d5c4d Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 8 Jul 2015 01:13:56 +0200 Subject: Flexible string literals, convertible to bytesX, bytes and string. --- libsolidity/solidityExecutionFramework.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libsolidity/solidityExecutionFramework.h') diff --git a/libsolidity/solidityExecutionFramework.h b/libsolidity/solidityExecutionFramework.h index 200940a4..03a201c7 100644 --- a/libsolidity/solidityExecutionFramework.h +++ b/libsolidity/solidityExecutionFramework.h @@ -145,6 +145,12 @@ public: { return bytes(); } + //@todo might be extended in the future + template + static bytes encodeDyn(Arg const& _arg) + { + return encodeArgs(u256(0x20), u256(_arg.size()), _arg); + } private: template -- cgit v1.2.3