make new fields optional
This commit is contained in:
parent
26886cc7d5
commit
58e4b741c4
2 changed files with 13 additions and 12 deletions
|
|
@ -85,7 +85,7 @@ namespace graphene { namespace chain {
|
||||||
account_id_type owner; ///< Who is able to withdraw the balance
|
account_id_type owner; ///< Who is able to withdraw the balance
|
||||||
asset amount;
|
asset amount;
|
||||||
vesting_policy_initializer policy;
|
vesting_policy_initializer policy;
|
||||||
vesting_balance_type balance_type;
|
optional<vesting_balance_type> balance_type;
|
||||||
|
|
||||||
account_id_type fee_payer()const { return creator; }
|
account_id_type fee_payer()const { return creator; }
|
||||||
void validate()const
|
void validate()const
|
||||||
|
|
@ -112,7 +112,7 @@ namespace graphene { namespace chain {
|
||||||
vesting_balance_id_type vesting_balance;
|
vesting_balance_id_type vesting_balance;
|
||||||
account_id_type owner; ///< Must be vesting_balance.owner
|
account_id_type owner; ///< Must be vesting_balance.owner
|
||||||
asset amount;
|
asset amount;
|
||||||
vesting_balance_type balance_type;
|
optional<vesting_balance_type> balance_type;
|
||||||
|
|
||||||
account_id_type fee_payer()const { return owner; }
|
account_id_type fee_payer()const { return owner; }
|
||||||
void validate()const
|
void validate()const
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,8 @@ object_id_type vesting_balance_create_evaluator::do_apply( const vesting_balance
|
||||||
else {
|
else {
|
||||||
op.policy.visit(init_policy_visitor(obj.policy, op.amount.amount, now));
|
op.policy.visit(init_policy_visitor(obj.policy, op.amount.amount, now));
|
||||||
}
|
}
|
||||||
obj.balance_type = op.balance_type;
|
if(op.balance_type)
|
||||||
|
obj.balance_type = *op.balance_type;
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue