Skip to content

Commit

Permalink
nice error message for old redeem memo
Browse files Browse the repository at this point in the history
  • Loading branch information
n13 committed May 2, 2024
1 parent f51a0db commit 138fbfc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/dao.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,10 @@ namespace pricing {
from != get_self()) {

const size_t prefix_length = 7; // "redeem,"

if (memo == "redeem") {
EOS_CHECK(false, "redeem must have a dao id specified like this: redeem,[daoId]");
}

if (memo.substr(0, prefix_length) == "redeem,") {
string number_str = memo.substr(prefix_length);
Expand Down

0 comments on commit 138fbfc

Please sign in to comment.