Replies: 3 comments 1 reply
-
How are you having the type detection? If you are using typechain, you can just cast to the type: import { MintEvent } from '../typechain/ContractName';
receipt.events as MintEvent[] |
Beta Was this translation helpful? Give feedback.
1 reply
-
other way, but I don't like also: smartContract.once('Claim', (datat) => {
console.log({data})
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Filter with transactionHash is necessary, if multiple Mint event triggered in very close time, client may get others result. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently if we want to get the events which emited by specific transcation, we need to use
queryFilter
withblockHash
, and filter withtransactionHash
again:It would be more convenient if we could use
queryFilter
withtransactionHash
or even get events driectly from receipt , any ideas?( I know we can get events by
receipt.events
, but it seem that we cannot make the type detection works with this way)Beta Was this translation helpful? Give feedback.
All reactions