mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Minor fix for integration tests.
This commit is contained in:
parent
8ef8f2e805
commit
b6ff445114
@ -60,7 +60,7 @@ BOOST_AUTO_TEST_CASE(Complex)
|
|||||||
CanonBlockChain bc;
|
CanonBlockChain bc;
|
||||||
cout << bc;
|
cout << bc;
|
||||||
|
|
||||||
State s(stateDB, BaseState::Empty, myMiner.address());
|
State s(stateDB, BaseState::CanonGenesis, myMiner.address());
|
||||||
cout << s;
|
cout << s;
|
||||||
|
|
||||||
// Sync up - this won't do much until we use the last state.
|
// Sync up - this won't do much until we use the last state.
|
||||||
@ -80,7 +80,7 @@ BOOST_AUTO_TEST_CASE(Complex)
|
|||||||
cout << s;
|
cout << s;
|
||||||
|
|
||||||
// Inject a transaction to transfer funds from miner to me.
|
// Inject a transaction to transfer funds from miner to me.
|
||||||
Transaction t(1000, 10000, 10000, me.address(), bytes(), s.transactionsFrom(myMiner.address()), myMiner.secret());
|
Transaction t(1000, 10000, 100000, me.address(), bytes(), s.transactionsFrom(myMiner.address()), myMiner.secret());
|
||||||
assert(t.sender() == myMiner.address());
|
assert(t.sender() == myMiner.address());
|
||||||
s.execute(bc.lastHashes(), t);
|
s.execute(bc.lastHashes(), t);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user