aboutsummaryrefslogtreecommitdiffstats
path: root/test/contracts/FixedFeeRegistrar.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-02-28 02:32:05 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-02-28 03:08:24 +0800
commit0346f723422698158b4d5d9b4d7737d185cd8e52 (patch)
tree9dfa08149c535c0a613e6e1cf853ba35074d9543 /test/contracts/FixedFeeRegistrar.cpp
parent029e19983cdc444749258d21b448e52c48d2088d (diff)
downloaddexon-solidity-0346f723422698158b4d5d9b4d7737d185cd8e52.tar.gz
dexon-solidity-0346f723422698158b4d5d9b4d7737d185cd8e52.tar.zst
dexon-solidity-0346f723422698158b4d5d9b4d7737d185cd8e52.zip
Use compileContract in contract tests
Diffstat (limited to 'test/contracts/FixedFeeRegistrar.cpp')
-rw-r--r--test/contracts/FixedFeeRegistrar.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/contracts/FixedFeeRegistrar.cpp b/test/contracts/FixedFeeRegistrar.cpp
index 8327999d..a3a27c37 100644
--- a/test/contracts/FixedFeeRegistrar.cpp
+++ b/test/contracts/FixedFeeRegistrar.cpp
@@ -132,13 +132,8 @@ protected:
void deployRegistrar()
{
if (!s_compiledRegistrar)
- {
- m_compiler.reset(false);
- m_compiler.addSource("", registrarCode);
- m_compiler.setOptimiserSettings(m_optimize, m_optimizeRuns);
- BOOST_REQUIRE_MESSAGE(m_compiler.compile(), "Compiling contract failed");
- s_compiledRegistrar.reset(new bytes(m_compiler.object("FixedFeeRegistrar").bytecode));
- }
+ s_compiledRegistrar.reset(new bytes(compileContract(registrarCode, "FixedFeeRegistrar")));
+
sendMessage(*s_compiledRegistrar, true);
BOOST_REQUIRE(!m_output.empty());
}