Closed kaleb-keny closed 4 months ago
Abi of the below snipped found here deployments.json
Use tx.events
hey @antazoey
tx.events
WARNING: Failed to locate contract at '0xCb5D8fE2B4AfbedB1970CCDc2f2e2919a6114240'.
Out [10]: [<<UnknownLogAtAddress_0xCb5D8fE2B4AfbedB1970CCDc2f2e2919a6114240_AndLogIndex_0> root=b''>, <<UnknownLogWithSelector_0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019> root=b''>]
Yep, those are the events decoded
It shows unknown selector thought 🤔 I dont see decoded logs
It also looks like you are missing the contract type! Once you add that, the logs will decode even better.
hmm sorry what is a contract type referring to, a contract is an address and an abi, right?
Are you on Discord or Telegram or something? We move this discussion there, we can help you out!
Feel free to re-open if you find issues! Check out some of the documentation: https://docs.apeworx.io/ape/stable/methoddocs/contracts.html
dm'd you via intermediary on discord
actually this one is best: https://docs.apeworx.io/ape/stable/userguides/contracts.html
ok actually is a bug lol but is a little different than described originally
appreciate the fast response, thank you
Environment information
ape
and plugin versions: 0.8.8ape-config.yaml
(NOTE: do not post anything private like RPC urls or secrets!):What went wrong?
Please include information like: For contracts behind proxies, ape fails to decode logs, poc below
which prints
How can it be fixed?
Use the abi of the contract to decode events