I am working on a P2P NFT lending contract, and it interacts with a second contract, the TokenLocker contract
In the logs, from the remix console/terminal, it emits the events for the lending contract, the NFT transfer events too (the transfers happens in the TokenLocker contract). But the event from the TokenLocker were not in the console/terminal
Meaning they probably didn't get emitted

The way I call the contract is, I create an interface of the TokenLocker contract with the functions I need
Then as a variable, I have
ItokenLocker private TokenLocker
And I call the functions as
TokenLocker.deposit()

Am I doing something wrong, or is there a way I should be calling the TokenLocker contract to ensure the event is emitted

May 3, 2023, 11:08 AM
Event is emitted when it's code is reached. If you're on remix, you can see them directly from the confirmed tx
May 3, 2023, 11:13 AM

© 2024 Draquery.com All rights reserved.