I'm getting a type mismatch error when I try to execute an action. Here is the line that's causing problems:
auto iterator = table.require_find(primary_key, ("Could not find entry " + std::to_string(primary_key)).cstr());
The primary key is a uint64_t.
I'm extremely confused because this exact line of code is used in an earlier helper function, and it causes no problems there. But the second time this line is used, it causes a type mismatch error. The exact output in terminal is
Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: type mismatch
Has anybody run into this problem before? I'm completely stumped by this.