diff options
author | chriseth <c@ethdev.com> | 2015-04-21 16:59:48 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-04-22 17:43:49 +0800 |
commit | a6d08950c6a81de3698ea8be01d2d5c472fe41e6 (patch) | |
tree | f1c74eb23c8e8cf351d08ea9c07682d78db1b0b5 /Types.h | |
parent | a44bcb6909478543151cac871fdbbc4909ad54aa (diff) | |
download | dexon-solidity-a6d08950c6a81de3698ea8be01d2d5c472fe41e6.tar.gz dexon-solidity-a6d08950c6a81de3698ea8be01d2d5c472fe41e6.tar.zst dexon-solidity-a6d08950c6a81de3698ea8be01d2d5c472fe41e6.zip |
bytes parameters for events and sha3.
Diffstat (limited to 'Types.h')
-rw-r--r-- | Types.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -430,7 +430,7 @@ public: virtual bool isExplicitlyConvertibleTo(Type const& _convertTo) const override; virtual TypePointer unaryOperatorResult(Token::Value _operator) const override; virtual bool operator==(Type const& _other) const override; - virtual unsigned getCalldataEncodedSize(bool _padded = true) const override + virtual unsigned getCalldataEncodedSize(bool _padded ) const override { return externalType()->getCalldataEncodedSize(_padded); } @@ -506,7 +506,7 @@ public: explicit EnumType(EnumDefinition const& _enum): m_enum(_enum) {} virtual TypePointer unaryOperatorResult(Token::Value _operator) const override; virtual bool operator==(Type const& _other) const override; - virtual unsigned getCalldataEncodedSize(bool _padded = true) const override + virtual unsigned getCalldataEncodedSize(bool _padded) const override { return externalType()->getCalldataEncodedSize(_padded); } @@ -558,7 +558,7 @@ public: /// appropriate external types of input/return parameters of current function. /// Returns an empty shared pointer if one of the input/return parameters does not have an /// external type. - virtual FunctionTypePointer externalFunctionType() const; + FunctionTypePointer externalFunctionType() const; virtual TypePointer externalType() const override { return externalFunctionType(); } explicit FunctionType(FunctionDefinition const& _function, bool _isInternal = true); |