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

Move the gasUsed to the right transaction on native L1 Asset transactions. #3026

Open
Tuditi opened this issue Nov 2, 2023 · 0 comments
Open
Assignees
Labels
feature New feature or request

Comments

@Tuditi
Copy link

Tuditi commented Nov 2, 2023

Is your feature request related to a problem? Please describe.
When a user sends native L1 assets (NFT, native tokens) on the EVM through the magic contract an additional transaction is created from the 0x0 address. The amount of gas used by the is put on the transaction of the 0x0 address instead of the user's transaction. This means that the transaction receipt returns that gasUsed is 0. This is misleading.

Describe the solution you'd like
Instead of putting gasUsed on the transaction from the 0x0 address, we would like to have it on the transaction from the orginal caller.

Describe alternatives you've considered
Use the blocks cumulativeGasUsed property, but this can be wrong if multiple transactions are included in a block.

Additional context
Sending a wrapped L1 NFT on the EVM network.
Block: https://explorer.evm.testnet.shimmer.network/block/39449?tab=txs

Tx from 0x0 address (left) and Tx from user (right)

image

@Tuditi Tuditi added the feature New feature or request label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants