Drop the util::u160 type

This commit is contained in:
Alex Beregszaszi
2021-04-23 14:35:06 +01:00
parent 37be1b3ed9
commit ac192ff4c1
4 changed files with 1 additions and 19 deletions
+1 -2
View File
@@ -373,7 +373,7 @@ inline void toBigEndian(T _val, Out& o_out)
/// Converts a big-endian byte-stream represented on a templated collection to a templated integer value.
/// @a In will typically be either std::string or bytes.
/// @a T will typically by unsigned, u160, u256 or bigint.
/// @a T will typically by unsigned, u256 or bigint.
template <class T, class In>
inline T fromBigEndian(In const& _bytes)
{
@@ -383,7 +383,6 @@ inline T fromBigEndian(In const& _bytes)
return ret;
}
inline bytes toBigEndian(u256 _val) { bytes ret(32); toBigEndian(_val, ret); return ret; }
inline bytes toBigEndian(u160 _val) { bytes ret(20); toBigEndian(_val, ret); return ret; }
/// Convenience function for toBigEndian.
/// @returns a byte array just big enough to represent @a _val.