Bare functions take single bytes argument.

This commit is contained in:
chriseth
2018-06-25 17:01:45 +02:00
committed by Alex Beregszaszi
parent 0e66a1ddde
commit 23c4142005
5 changed files with 44 additions and 94 deletions
+3 -2
View File
@@ -1058,8 +1058,9 @@ public:
ASTPointer<ASTString> documentation() const;
/// true iff arguments are to be padded to multiples of 32 bytes for external calls
/// TODO should this be true in general for bareCall*?
bool padArguments() const { return !(m_kind == Kind::SHA3 || m_kind == Kind::SHA256 || m_kind == Kind::RIPEMD160 || m_kind == Kind::ABIEncodePacked); }
/// The only functions that do not pad are hash functions, the low-level call functions
/// and abi.encodePacked.
bool padArguments() const;
bool takesArbitraryParameters() const { return m_arbitraryParameters; }
/// true iff the function takes a single bytes parameter and it is passed on without padding.
bool takesSinglePackedBytesParameter() const