eos icon indicating copy to clipboard operation
eos copied to clipboard

Bad error message

Open brianjohnson5972 opened this issue 8 years ago • 2 comments

"inline action recursion depth reached" in apply_context.cpp, it should be "max inline action depth per transaction reached"

brianjohnson5972 avatar Sep 12 '18 23:09 brianjohnson5972

See confusion reported in #5632

brianjohnson5972 avatar Sep 12 '18 23:09 brianjohnson5972

What does this error mean? I cannot understand why I am receiving this error after a simple inline action transfer call

[[eosio::action]] void exchange::transfer(name from, name to, asset quantity, string memo) { eosio_assert(quantity.symbol == EOS_SYMBOL, "must pay with EOS token");

uint64_t EOS_AMOUNT = 1.0000;


name eosio_name = "cooperbaxter"_n;
asset amount = asset(10000, EOS_SYMBOL);
if (quantity.symbol == EOS_SYMBOL)
{
action (
        permission_level{get_self(), "active"_n},
        "eosio.token"_n,
        "transfer"_n,
        std::make_tuple (
            from = _self, to = eosio_name, quantity = amount, memo = "Test"
        )
    ).send();
}

}

johnworthley avatar Jan 27 '19 00:01 johnworthley