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

TransactionID no longer used by Feeder Gateway, feeder.go still includes code to use it. [LOW SEVERITY] #211

Closed
D-DePablos opened this issue Jun 10, 2022 · 2 comments

Comments

@D-DePablos
Copy link
Contributor

Describe the bug
See title

To Reproduce
GET request to: https://alpha-mainnet.starknet.io/feeder_gateway/get_transaction?transactionId=5425206

Expected behavior
Returns transaction information (in both Feeder gateway and feeder implementation)

Screenshots
image

image

@devenmatthews
Copy link
Contributor

transactionId is still used by get_transaction_hash_by_id see here:
https://alpha-mainnet.starknet.io/feeder_gateway/get_transaction_hash_by_id?transactionId=100

Although GetTransactionStatus GetTransactionReceipt and GetTransaction are the only ones using TxnIdentifier and they do not support requests by transactionId.

I don't think it would make sense to use TxnIdentifier for get_transaction_hash_by_id. So potentially this can be removed.

I'd like to learn more about how feeder_gateway changes- because I'm unsure why GetTransaction does not support txId. I'm wondering if support may come in the future.

@D-DePablos
Copy link
Contributor Author

I agree that feeder_gateway allows to go from hash <-> ID, but ID is not used aside from these calls. We can keep the functionality but I will not implement tx ID as it does not work with any other calls, and add a warning when hash is changed to ID.

The cairo-lang starknet CLI does not use any tx id as far as I have been able to see.

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