Open 7flash opened 2 years ago
Its giving me this warning when compiling with clsdk
unknown attribute 'on_notify' ignored
I have found solution as following:
notify(atomicassets_contract_account, transfer)
void notify_transfer(
name from,
name to,
vector<uint64_t> asset_ids,
string memo
)
It seems like action name should be in format of "notify_" concatenated with original action name, I wonder if there is a way to choose custom one?
not currently
@tbfleming I have a contract where I want to be notified both for transfer of EOS and transfer of NFT, but action name is the same, - transfer, - in eosio.token and atomicassets contract, - any ideas how to approach this case?
When I want to accept token transfers to my contract, I am usually doing this while using eosio.cdt, what's the alternative using clsdk?