event args #4283
jeevansiddu
started this conversation in
General
event args
#4283
Replies: 1 comment
-
Currently, there is an issue when a dynamic type is marked as Solution is to either remove event winnerAttained(uint id, string indexed _winner, string winner) The indexed winner will go in the topics and the other winner will go in the data in abi encoded format which you can easily decode using ethers.js |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ethers Version
6.6.2
Search Terms
events,logging , args
Describe the Problem
In Current Version of ethers v6 ., once the event is emitted how we should log them ., because the older method of logging from transaction receipt is not working "
for example this is my function code
for this i have wrote a specific test for the event of winner attained (Note : I have declared the winner as an indexed string )
I have tried all the ways to log the winner but In the present version of ethers it is not working ., So if anyone knows please help
I can Understand ethers is not verifying events because the contract it can emit events from other contracts whose ABI ethers doesnt know .,
but here the basic use case for me to log the event and find the winner ., is there any method to log the winner
when are the cases which ContractReceipt will be returned , and when txnreceipt is returned , and how to pass an event fragment in the function to return a contractreceipt
Code Snippet
Beta Was this translation helpful? Give feedback.
All reactions