From 023407eadc25c088f8b897b231d1866e054fd78a Mon Sep 17 00:00:00 2001 From: Leister Francisco Alvarez Campos Date: Fri, 17 Mar 2023 15:04:14 -0600 Subject: [PATCH] feat(funds): update error message --- contracts/eden/src/actions/distributions.cpp | 4 ++-- contracts/eden/tests/test-eden.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/eden/src/actions/distributions.cpp b/contracts/eden/src/actions/distributions.cpp index 035bed44d..1104e8abd 100644 --- a/contracts/eden/src/actions/distributions.cpp +++ b/contracts/eden/src/actions/distributions.cpp @@ -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); } diff --git a/contracts/eden/tests/test-eden.cpp b/contracts/eden/tests/test-eden.cpp index aead813b0..4b1a8df19 100644 --- a/contracts/eden/tests/test-eden.cpp +++ b/contracts/eden/tests/test-eden.cpp @@ -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(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(new_max_month_withdraw); CHECK(get_globals().max_month_withdraw == new_max_month_withdraw); }