diff options
author | Gav Wood <i@gavwood.com> | 2015-07-16 07:29:03 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-07-20 03:10:13 +0800 |
commit | 07a29389d6b13b82c3e2d55fbf62cc08124c4cbc (patch) | |
tree | 1759636bcd3d7af7fb12cf34e928268518308457 /TestHelper.cpp | |
parent | c30de11a76f986b8b1548d57f541a18776312ed0 (diff) | |
download | dexon-solidity-07a29389d6b13b82c3e2d55fbf62cc08124c4cbc.tar.gz dexon-solidity-07a29389d6b13b82c3e2d55fbf62cc08124c4cbc.tar.zst dexon-solidity-07a29389d6b13b82c3e2d55fbf62cc08124c4cbc.zip |
All fields of BlockInfo now private.
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r-- | TestHelper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index b43c4db5..bae980a7 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -151,12 +151,12 @@ void ImportTest::importEnv(json_spirit::mObject& _o) assert(_o.count("currentCoinbase") > 0); assert(_o.count("currentNumber") > 0); - m_environment.currentBlock.parentHash = h256(_o["previousHash"].get_str()); + m_environment.currentBlock.parentHash() = h256(_o["previousHash"].get_str()); m_environment.currentBlock.number = toInt(_o["currentNumber"]); m_environment.currentBlock.gasLimit = toInt(_o["currentGasLimit"]); m_environment.currentBlock.difficulty = toInt(_o["currentDifficulty"]); - m_environment.currentBlock.timestamp = toInt(_o["currentTimestamp"]); - m_environment.currentBlock.coinbaseAddress = Address(_o["currentCoinbase"].get_str()); + m_environment.currentBlock.timestamp() = toInt(_o["currentTimestamp"]); + m_environment.currentBlock.coinbaseAddress() = Address(_o["currentCoinbase"].get_str()); m_statePre.m_previousBlock = m_environment.previousBlock; m_statePre.m_currentBlock = m_environment.currentBlock; |