File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
contracts/vesting.tmy/src Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -218,13 +218,14 @@ namespace vestingtoken
218218
219219 for (auto iter = vesting_table.begin (); iter != vesting_table.end (); ++iter)
220220 {
221- check (iter->tokens_allocated .symbol == SYSTEM_RESOURCE_CURRENCY_OLD, " Symbol has already been upgraded " );
222-
223- vesting_table.modify (iter, get_self (), [&](auto &row)
221+ if (iter->tokens_allocated .symbol == SYSTEM_RESOURCE_CURRENCY_OLD)
222+ {
223+ vesting_table.modify (iter, get_self (), [&](auto &row)
224224 {
225- row.tokens_allocated = asset (row.tokens_allocated .amount , system_resource_currency);
226- row.tokens_claimed = asset (row.tokens_claimed .amount , system_resource_currency);
227- });
225+ row.tokens_allocated = asset (row.tokens_allocated .amount , system_resource_currency);
226+ row.tokens_claimed = asset (row.tokens_claimed .amount , system_resource_currency);
227+ });
228+ }
228229 }
229230 }
230231}
You can’t perform that action at this time.
0 commit comments