I am using a very simple example:
mycontract.hpp:
[[eosio::on_notify("eosio.token::transfer")]]
void depos(name from, name to, asset quantity, string memo);
mycontract.cpp:
[[eosio::on_notify("eosio.token::transfer")]]
void depos(name from, name to, asset quantity, string memo) {
check(false, "notification handler triggered successfully");
}
By calling eosio.token::transfer
, the transaction happens successfully, but my function depos
does not get called.