Network: kylin testnet.
I transferred eos to this contract, but it the "deposit" function was not called. What do I miss?
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.Sign up to join this community
I believe the action wrapper is needed to map the transfer action to the deposit function, the notification by itself is not sufficient.
try adding to ln15 of header:
[[eosio::on_notify("eosio.token::transfer")]] void deposit(name from, name to,asset quantity, string memo);
using transfer_action = action_wrapper<name("transfer"), &hello::deposit>;