diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-10 00:48:33 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-12 19:53:00 +0800 |
commit | 73ce24ae75554b18a342e1e510f37f99057fdb1d (patch) | |
tree | 999cf2ae9aa0dfeed3cd816b89f907f83328273f /ExpressionCompiler.cpp | |
parent | 2bddebc3d5fc942dc43364a9c4ddfb897768c93d (diff) | |
download | dexon-solidity-73ce24ae75554b18a342e1e510f37f99057fdb1d.tar.gz dexon-solidity-73ce24ae75554b18a342e1e510f37f99057fdb1d.tar.zst dexon-solidity-73ce24ae75554b18a342e1e510f37f99057fdb1d.zip |
Most EndToEndTests are now compliant with the Bytes renaming
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r-- | ExpressionCompiler.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp index 51e1fd0a..089ebc32 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -131,7 +131,6 @@ void ExpressionCompiler::appendTypeConversion(Type const& _typeOnStack, Type con // conversion from string to bytes. no need to clean the high bit // only to shift right because of opposite alignment IntegerType const& targetIntegerType = dynamic_cast<IntegerType const&>(_targetType); - solAssert(targetIntegerType.isAddress(), "Only conversion between Address and FixedBytes is allowed."); solAssert(targetIntegerType.getNumBits() == typeOnStack.getNumBytes() * 8, "The size should be the same."); m_context << (u256(1) << (256 - typeOnStack.getNumBytes() * 8)) << eth::Instruction::SWAP1 << eth::Instruction::DIV; } @@ -164,7 +163,6 @@ void ExpressionCompiler::appendTypeConversion(Type const& _typeOnStack, Type con // only to shift left because of opposite alignment FixedBytesType const& targetBytesType = dynamic_cast<FixedBytesType const&>(_targetType); IntegerType const& typeOnStack = dynamic_cast<IntegerType const&>(_typeOnStack); - solAssert(typeOnStack.isAddress(), "Only conversion between Address and Bytes is allowed."); solAssert(typeOnStack.getNumBits() == targetBytesType.getNumBytes() * 8, "The size should be the same."); m_context << (u256(1) << (256 - typeOnStack.getNumBits())) << eth::Instruction::MUL; } |