add son vesting balance type

This commit is contained in:
Alfredo Garcia 2019-10-09 17:55:37 -03:00
parent c6ef1870cb
commit fcdbce84ea
2 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@
namespace graphene { namespace chain {
enum class vesting_balance_type { unspecified, gpos };
enum class vesting_balance_type { unspecified, gpos, son };
struct linear_vesting_policy_initializer
{
@ -122,4 +122,4 @@ FC_REFLECT(graphene::chain::linear_vesting_policy_initializer, (begin_timestamp)
FC_REFLECT(graphene::chain::cdd_vesting_policy_initializer, (start_claim)(vesting_seconds) )
FC_REFLECT_TYPENAME( graphene::chain::vesting_policy_initializer )
FC_REFLECT_ENUM( graphene::chain::vesting_balance_type, (unspecified)(gpos) )
FC_REFLECT_ENUM( graphene::chain::vesting_balance_type, (unspecified)(gpos)(son) )

View file

@ -36,7 +36,7 @@ BOOST_AUTO_TEST_CASE( create_son_test ) {
op.creator = alice_id;
op.owner = alice_id;
op.amount = asset(10);
op.balance_type = vesting_balance_type::unspecified;
op.balance_type = vesting_balance_type::son;
trx.operations.push_back(op);
set_expiration(db, trx);
@ -51,7 +51,7 @@ BOOST_AUTO_TEST_CASE( create_son_test ) {
op.creator = alice_id;
op.owner = alice_id;
op.amount = asset(10);
op.balance_type = vesting_balance_type::unspecified;
op.balance_type = vesting_balance_type::son;
trx.operations.push_back(op);
set_expiration(db, trx);