Skip to content

Commit 5af8d60

Browse files
committed
fix: fixed the tokens_claim check
1 parent 5faa585 commit 5af8d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/vesting.tmy/src/vesting.tmy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ namespace vestingtoken
176176
// Checks to verify new allocation is valid
177177
eosio::check(iter->tokens_allocated.amount == old_amount.amount, "Old amount does not match existing allocation");
178178
eosio::check(iter->vesting_category_type == old_category_id, "Old category does not match existing allocation");
179-
eosio::check(iter->tokens_claimed.amount < new_amount.amount, "New amount is less than the amount already claimed");
179+
eosio::check(iter->tokens_claimed.amount <= new_amount.amount, "New amount is less than the amount already claimed");
180180

181181
// Modify the table row data, and update the table
182182
vesting_table.modify(iter, get_self(), [&](auto &row)

0 commit comments

Comments
 (0)