Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Bad error message #5633

Closed
brianjohnson5972 opened this issue Sep 12, 2018 · 2 comments
Closed

Bad error message #5633

brianjohnson5972 opened this issue Sep 12, 2018 · 2 comments

Comments

@brianjohnson5972
Copy link
Contributor

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

brianjohnson5972 added a commit to brianjohnson5972/eos that referenced this issue Sep 12, 2018
@brianjohnson5972
Copy link
Contributor Author

See confusion reported in #5632

@johnworthley
Copy link

johnworthley commented Jan 27, 2019

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();
}

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants