mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add comprehensive tests for FixedHash
Also explicitly disallow FixedHash<0>, given most functions were not working with it, and it is not very useful.
This commit is contained in:
@@ -48,6 +48,7 @@ public:
|
||||
|
||||
/// The size of the container.
|
||||
enum { size = N };
|
||||
static_assert(N != 0);
|
||||
|
||||
/// Method to convert from a string.
|
||||
enum ConstructFromStringType { FromHex, FromBinary };
|
||||
|
||||
Reference in New Issue
Block a user