Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to read the transaction logs #26

Open
Ekaanth opened this issue Jul 11, 2024 · 1 comment
Open

Ability to read the transaction logs #26

Ekaanth opened this issue Jul 11, 2024 · 1 comment

Comments

@Ekaanth
Copy link

Ekaanth commented Jul 11, 2024

Hello @jmrossy,
Thanks for this wrapper.
While using the wrapper I came across an issue: I'm unable to access the transaction logs.
In my case, an NFT is minted using this wrapper in our infra and there is no way to get the tokenID since that can be obtained from transaction logs.
Typically while using WAGMI and after the mint function in the transaction log I can find the tokenID something like this

txData.logs[0].topics[3]

    tokenContract: txData.to,
    tokenID: parseInt(txData.logs[0].topics[3] as string, 16).toString(),
    tokenMintingTx: txData.transactionHash,
    nftOwner: txData.from,

Is it possible to get the same outcome from the wrapper? if so how?
Thank you.

@jmrossy
Copy link
Owner

jmrossy commented Jul 11, 2024

@Ekaanth This wrapper doesn't change logs in any way. If logs are not being included, it's likely because the RPC provider you're using has chosen not to include them. See CeloProvider for details about what this wrapper does exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants