does anyone know how to listen events on smart contract from another s.c? is it possible?
Oct 12, 2023, 6:14 PM
Events are for off-chain software, on-chain you cannot read those
Oct 12, 2023, 6:19 PM
ok, thanks. how can i get incoming erc20 transfer on contract. can i use it without calling transferFrom()?
Oct 12, 2023, 6:22 PM
If you mean from a contract, transferFrom is the only way if it's an erc20
Using transfer() inside a contract function will move them from the contract itself
Oct 12, 2023, 6:32 PM
ok. thanks, i'll remake entire contract then
Oct 12, 2023, 6:40 PM
this is the way
reply here if you have more info, those can help others
Oct 12, 2023, 7:59 PM