mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove standard contracts
This commit is contained in:
@@ -35,7 +35,7 @@ namespace test
|
||||
class JSONInterfaceChecker
|
||||
{
|
||||
public:
|
||||
JSONInterfaceChecker(): m_compilerStack(false) {}
|
||||
JSONInterfaceChecker(): m_compilerStack() {}
|
||||
|
||||
void checkInterface(std::string const& _code, std::string const& _expectedInterfaceString)
|
||||
{
|
||||
|
||||
@@ -2458,21 +2458,6 @@ BOOST_AUTO_TEST_CASE(function_modifier_for_constructor)
|
||||
BOOST_CHECK(callContractFunction("getData()") == encodeArgs(4 | 2));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(use_std_lib)
|
||||
{
|
||||
char const* sourceCode = R"(
|
||||
import "mortal";
|
||||
contract Icarus is mortal { }
|
||||
)";
|
||||
m_addStandardSources = true;
|
||||
u256 amount(130 * ether);
|
||||
compileAndRun(sourceCode, amount, "Icarus");
|
||||
u256 balanceBefore = balanceAt(m_sender);
|
||||
BOOST_CHECK(callContractFunction("kill()") == bytes());
|
||||
BOOST_CHECK(!addressHasCode(m_contractAddress));
|
||||
BOOST_CHECK(balanceAt(m_sender) > balanceBefore);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(crazy_elementary_typenames_on_stack)
|
||||
{
|
||||
char const* sourceCode = R"(
|
||||
|
||||
@@ -67,7 +67,7 @@ public:
|
||||
std::map<std::string, Address> const& _libraryAddresses = std::map<std::string, Address>()
|
||||
)
|
||||
{
|
||||
m_compiler.reset(false, m_addStandardSources);
|
||||
m_compiler.reset(false);
|
||||
m_compiler.addSource("", _sourceCode);
|
||||
if (!m_compiler.compile(m_optimize, m_optimizeRuns))
|
||||
{
|
||||
@@ -290,7 +290,6 @@ protected:
|
||||
|
||||
size_t m_optimizeRuns = 200;
|
||||
bool m_optimize = false;
|
||||
bool m_addStandardSources = false;
|
||||
dev::solidity::CompilerStack m_compiler;
|
||||
Address m_sender;
|
||||
Address m_contractAddress;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace test
|
||||
class DocumentationChecker
|
||||
{
|
||||
public:
|
||||
DocumentationChecker(): m_compilerStack(false) {}
|
||||
DocumentationChecker(): m_compilerStack() {}
|
||||
|
||||
void checkNatspec(
|
||||
std::string const& _code,
|
||||
|
||||
Reference in New Issue
Block a user