diff options
author | chriseth <chris@ethereum.org> | 2017-09-27 18:04:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-27 18:04:51 +0800 |
commit | 809d5ce128e76501538a3d143252e6caef7ee862 (patch) | |
tree | 28d40b55d087f2a8efadda97e1408e3f61a0373d /libsolidity/codegen/ABIFunctions.cpp | |
parent | 6db13311dd6d9e9ebb10f6f5b34c5b326f69b390 (diff) | |
parent | ee65ecfb3b80d9c027bade21df883e897b1234c5 (diff) | |
download | dexon-solidity-809d5ce128e76501538a3d143252e6caef7ee862.tar dexon-solidity-809d5ce128e76501538a3d143252e6caef7ee862.tar.gz dexon-solidity-809d5ce128e76501538a3d143252e6caef7ee862.tar.bz2 dexon-solidity-809d5ce128e76501538a3d143252e6caef7ee862.tar.lz dexon-solidity-809d5ce128e76501538a3d143252e6caef7ee862.tar.xz dexon-solidity-809d5ce128e76501538a3d143252e6caef7ee862.tar.zst dexon-solidity-809d5ce128e76501538a3d143252e6caef7ee862.zip |
Merge pull request #2973 from ethereum/address-160
Ensure that address types are always declared as 160bit
Diffstat (limited to 'libsolidity/codegen/ABIFunctions.cpp')
-rw-r--r-- | libsolidity/codegen/ABIFunctions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/ABIFunctions.cpp b/libsolidity/codegen/ABIFunctions.cpp index 9f6c55ba..22b620e1 100644 --- a/libsolidity/codegen/ABIFunctions.cpp +++ b/libsolidity/codegen/ABIFunctions.cpp @@ -162,7 +162,7 @@ string ABIFunctions::cleanupFunction(Type const& _type, bool _revertOnFailure) break; } case Type::Category::Contract: - templ("body", "cleaned := " + cleanupFunction(IntegerType(0, IntegerType::Modifier::Address)) + "(value)"); + templ("body", "cleaned := " + cleanupFunction(IntegerType(160, IntegerType::Modifier::Address)) + "(value)"); break; case Type::Category::Enum: { @@ -243,7 +243,7 @@ string ABIFunctions::conversionFunction(Type const& _from, Type const& _to) toCategory == Type::Category::Integer || toCategory == Type::Category::Contract, ""); - IntegerType const addressType(0, IntegerType::Modifier::Address); + IntegerType const addressType(160, IntegerType::Modifier::Address); IntegerType const& to = toCategory == Type::Category::Integer ? dynamic_cast<IntegerType const&>(_to) : |