44 Address addr{
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"};
47 uint8_t codeData[] = {
'c',
'o',
'd',
'e'};
48 s.setNewCode(addr, {std::begin(codeData), std::end(codeData)});
49 s.commit(State::CommitBehaviour::RemoveEmptyAccounts);
51 auto& loadedCode = s.code(addr);
53 std::begin(codeData), std::end(codeData), std::begin(loadedCode)
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::hash for asio::adress
Model of an Ethereum state, essentially a facade for the trie.
BOOST_AUTO_TEST_CASE(LoadAccountCode)
Active model of a block within the block chain.
void createContract(Address const &_address)
Create a contract at the given address (with unset code and unchanged balance).
Fixed-size raw-byte array container type, with an API optimised for storing hashes.
#define BOOST_FIXTURE_TEST_SUITE(a, b)
#define BOOST_AUTO_TEST_SUITE_END()
Helper functions to work with json::spirit and test files.
#define BOOST_CHECK(expr)