diff options
author | chriseth <c@ethdev.com> | 2015-04-20 20:09:41 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-04-21 19:03:26 +0800 |
commit | c834ee5ce1a6d034d4503c5b82ff200a3a6d2c88 (patch) | |
tree | bbbfb1f0a32fdc69022b9aeeed1c1a9ec6894053 /libsolidity | |
parent | e375612a7ecbab9ad33a6a40df1c722a82e07630 (diff) | |
download | dexon-solidity-c834ee5ce1a6d034d4503c5b82ff200a3a6d2c88.tar dexon-solidity-c834ee5ce1a6d034d4503c5b82ff200a3a6d2c88.tar.gz dexon-solidity-c834ee5ce1a6d034d4503c5b82ff200a3a6d2c88.tar.bz2 dexon-solidity-c834ee5ce1a6d034d4503c5b82ff200a3a6d2c88.tar.lz dexon-solidity-c834ee5ce1a6d034d4503c5b82ff200a3a6d2c88.tar.xz dexon-solidity-c834ee5ce1a6d034d4503c5b82ff200a3a6d2c88.tar.zst dexon-solidity-c834ee5ce1a6d034d4503c5b82ff200a3a6d2c88.zip |
Fixed byte alignment for return type of ripemd160 built-in contract.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/SolidityEndToEndTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/SolidityEndToEndTest.cpp b/libsolidity/SolidityEndToEndTest.cpp index c345f520..1d437ee5 100644 --- a/libsolidity/SolidityEndToEndTest.cpp +++ b/libsolidity/SolidityEndToEndTest.cpp @@ -1499,7 +1499,7 @@ BOOST_AUTO_TEST_CASE(ripemd) { h256 ret; dev::ripemd160(dev::ref(toBigEndian(_input)), bytesRef(&ret[0], 32)); - return u256(ret) >> (256 - 160); + return u256(ret); }; testSolidityAgainstCpp("a(bytes32)", f, u256(4)); testSolidityAgainstCpp("a(bytes32)", f, u256(5)); @@ -1814,7 +1814,7 @@ BOOST_AUTO_TEST_CASE(gas_for_builtin) )"; compileAndRun(sourceCode); BOOST_CHECK(callContractFunction("test(uint256)", 500) == bytes()); - BOOST_CHECK(callContractFunction("test(uint256)", 800) == encodeArgs(u256("0x8eb208f7e05d987a9b044a8e98c6b087f15a0bfc"), true)); + BOOST_CHECK(callContractFunction("test(uint256)", 800) == encodeArgs(u256("0x8eb208f7e05d987a9b044a8e98c6b087f15a0bfc000000000000000000000000"), true)); } BOOST_AUTO_TEST_CASE(value_complex) |