mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Style
This commit is contained in:
parent
a92398a300
commit
ad36fc3c58
@ -35,7 +35,7 @@ if (NOT EMSCRIPTEN)
|
|||||||
add_subdirectory(lllc)
|
add_subdirectory(lllc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (TESTS AND NOT EMSCRIPTEN AND NOT WIN32)
|
if (TESTS AND NOT EMSCRIPTEN)
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -36,6 +36,8 @@ public:
|
|||||||
string sendRequest(string const& _req);
|
string sendRequest(string const& _req);
|
||||||
~IPCSocket() { close(m_socket); fclose(m_fp); }
|
~IPCSocket() { close(m_socket); fclose(m_fp); }
|
||||||
|
|
||||||
|
static IPCSocket& instance();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FILE *m_fp;
|
FILE *m_fp;
|
||||||
string m_address;
|
string m_address;
|
||||||
@ -56,7 +58,7 @@ public:
|
|||||||
string data;
|
string data;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct transactionReceipt
|
struct TransactionReceipt
|
||||||
{
|
{
|
||||||
string gasUsed;
|
string gasUsed;
|
||||||
string contractAddress;
|
string contractAddress;
|
||||||
@ -65,7 +67,7 @@ public:
|
|||||||
RPCRequest(string const& _localSocketAddress): m_ipcSocket(_localSocketAddress) {}
|
RPCRequest(string const& _localSocketAddress): m_ipcSocket(_localSocketAddress) {}
|
||||||
string eth_getCode(string const& _address, string const& _blockNumber);
|
string eth_getCode(string const& _address, string const& _blockNumber);
|
||||||
string eth_call(transactionData const& _td, string const& _blockNumber);
|
string eth_call(transactionData const& _td, string const& _blockNumber);
|
||||||
transactionReceipt eth_getTransactionReceipt(string const& _transactionHash);
|
TransactionReceipt eth_getTransactionReceipt(string const& _transactionHash);
|
||||||
string eth_sendTransaction(transactionData const& _transactionData);
|
string eth_sendTransaction(transactionData const& _transactionData);
|
||||||
string eth_sendTransaction(string const& _transaction);
|
string eth_sendTransaction(string const& _transaction);
|
||||||
string eth_getBalance(string const& _address, string const& _blockNumber);
|
string eth_getBalance(string const& _address, string const& _blockNumber);
|
||||||
|
@ -51,8 +51,7 @@ class ExecutionFramework
|
|||||||
public:
|
public:
|
||||||
ExecutionFramework():
|
ExecutionFramework():
|
||||||
m_state(0),
|
m_state(0),
|
||||||
m_socket("/home/wins/Ethereum/testnet/ethnode1/geth.ipc")
|
m_socket("/tmp/test/geth.ipc")
|
||||||
//m_socket("/media/www/STUFF/Ethereum/testnet/ethnode1/datadir/geth.ipc")
|
|
||||||
{
|
{
|
||||||
eth::NoProof::init();
|
eth::NoProof::init();
|
||||||
m_sealEngine.reset(eth::ChainParams().createSealEngine());
|
m_sealEngine.reset(eth::ChainParams().createSealEngine());
|
||||||
@ -124,7 +123,8 @@ public:
|
|||||||
"Computed values do not match.\nSolidity: " +
|
"Computed values do not match.\nSolidity: " +
|
||||||
toHex(solidityResult) +
|
toHex(solidityResult) +
|
||||||
"\nC++: " +
|
"\nC++: " +
|
||||||
toHex(cppResult));
|
toHex(cppResult)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class CppFunction, class... Args>
|
template <class CppFunction, class... Args>
|
||||||
|
Loading…
Reference in New Issue
Block a user