mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Drop the util::u160 type
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user