diff options
author | Dimitry <winsvega@mail.ru> | 2016-06-14 23:01:57 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-06-29 05:18:55 +0800 |
commit | 763faf7b0e56cde9845772de5226c9b6f1a5d80a (patch) | |
tree | 14660008fc89ee655fd51563c268d45da43b5596 /test/contracts/FixedFeeRegistrar.cpp | |
parent | ce2258b71e632e01b3f50d47704352065cb01b5d (diff) | |
download | dexon-solidity-763faf7b0e56cde9845772de5226c9b6f1a5d80a.tar.gz dexon-solidity-763faf7b0e56cde9845772de5226c9b6f1a5d80a.tar.zst dexon-solidity-763faf7b0e56cde9845772de5226c9b6f1a5d80a.zip |
replace BalanceAt
add addressHasCode
remove m_state and sealengine
Diffstat (limited to 'test/contracts/FixedFeeRegistrar.cpp')
-rw-r--r-- | test/contracts/FixedFeeRegistrar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/contracts/FixedFeeRegistrar.cpp b/test/contracts/FixedFeeRegistrar.cpp index 35f0842d..df521e7e 100644 --- a/test/contracts/FixedFeeRegistrar.cpp +++ b/test/contracts/FixedFeeRegistrar.cpp @@ -234,9 +234,9 @@ BOOST_AUTO_TEST_CASE(disown) BOOST_CHECK(callContractFunction("setAddr(string,address)", u256(0x40), u256(124), u256(name.length()), name) == encodeArgs()); BOOST_CHECK(callContractFunction("setSubRegistrar(string,address)", u256(0x40), u256(125), u256(name.length()), name) == encodeArgs()); - BOOST_CHECK_EQUAL(m_state.balance(Address(0x124)), 0); + BOOST_CHECK_EQUAL(balanceAt(Address(0x124)), 0); BOOST_CHECK(callContractFunction("disown(string,address)", u256(0x40), u256(0x124), name.size(), name) == encodeArgs()); - BOOST_CHECK_EQUAL(m_state.balance(Address(0x124)), m_fee); + BOOST_CHECK_EQUAL(balanceAt(Address(0x124)), m_fee); BOOST_CHECK(callContractFunction("owner(string)", encodeDyn(name)) == encodeArgs(u256(0))); BOOST_CHECK(callContractFunction("content(string)", encodeDyn(name)) == encodeArgs(u256(0))); |