| 43 | { |
| 44 | |
| 45 | std::optional<size_t> staticEncodingSize(std::vector<Type const*> const& _parameterTypes) |
| 46 | { |
| 47 | size_t encodedSize = 0; |
| 48 | for (auto* type: _parameterTypes) |
| 49 | { |
| 50 | if (type->isDynamicallyEncoded()) |
| 51 | return std::nullopt; |
| 52 | encodedSize += type->calldataHeadSize(); |
| 53 | } |
| 54 | return encodedSize; |
| 55 | } |
| 56 | |
| 57 | } |
| 58 |
no test coverage detected