Skip to content

Commit

Permalink
feat(funds): update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
leisterfrancisco committed Mar 17, 2023
1 parent 502cff4 commit 023407e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/eden/src/actions/distributions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ namespace eden
void eden::setcoltime(uint8_t months)
{
require_auth(get_self());
// validate if it is required that no distribution is in progress
eosio::check(months > 0, "Max months to collect the funds should be at least 1");

eosio::check(months > 0, "Max months to withdraw the funds should be at least 1");
globals{get_self()}.set_max_month_withdraw(months);
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/eden/tests/test-eden.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ TEST_CASE("change the max month to transfer funds")

CHECK(get_globals().max_month_withdraw == default_max_month_withdraw);
expect(t.eden_gm.trace<actions::setcoltime>(0),
"Max months to collect the funds should be at least 1");
"Max months to withdraw the funds should be at least 1");
t.eden_gm.act<actions::setcoltime>(new_max_month_withdraw);
CHECK(get_globals().max_month_withdraw == new_max_month_withdraw);
}
Expand Down

0 comments on commit 023407e

Please sign in to comment.