database_fixture.hpp: Add {name}_public_key to fields defined by ACTOR macro
This commit is contained in:
parent
de435d9d51
commit
085013fbd8
1 changed files with 3 additions and 2 deletions
|
|
@ -117,11 +117,12 @@ using namespace graphene::db;
|
||||||
#define INVOKE(test) ((struct test*)this)->test_method(); trx.clear()
|
#define INVOKE(test) ((struct test*)this)->test_method(); trx.clear()
|
||||||
|
|
||||||
#define PREP_ACTOR(name) \
|
#define PREP_ACTOR(name) \
|
||||||
fc::ecc::private_key name ## _private_key = generate_private_key(BOOST_PP_STRINGIZE(name));
|
fc::ecc::private_key name ## _private_key = generate_private_key(BOOST_PP_STRINGIZE(name)); \
|
||||||
|
public_key_type name ## _public_key = name ## _private_key.get_public_key();
|
||||||
|
|
||||||
#define ACTOR(name) \
|
#define ACTOR(name) \
|
||||||
PREP_ACTOR(name) \
|
PREP_ACTOR(name) \
|
||||||
const auto& name = create_account(BOOST_PP_STRINGIZE(name), name ## _private_key.get_public_key()); \
|
const auto& name = create_account(BOOST_PP_STRINGIZE(name), name ## _public_key); \
|
||||||
account_id_type name ## _id = name.id; (void)name ## _id;
|
account_id_type name ## _id = name.id; (void)name ## _id;
|
||||||
|
|
||||||
#define GET_ACTOR(name) \
|
#define GET_ACTOR(name) \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue