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

MissingFieldException when trying to get transaction receipt #186

Closed
kamilargent opened this issue Nov 21, 2022 · 0 comments · Fixed by #187
Closed

MissingFieldException when trying to get transaction receipt #186

kamilargent opened this issue Nov 21, 2022 · 0 comments · Fixed by #187
Assignees
Labels
bug Something isn't working

Comments

@kamilargent
Copy link

When trying to get transaction receipt via GatewayProvider I get the following exception. It seems that actualFee should be an optional parameter

Call: provider.getTransactionReceipt(txHash)
Response:

 <-- 200 https://alpha4-2.starknet.io/feeder_gateway/get_transaction_receipt?transactionHash=0x334da4f63cc6309ba2429a70f103872ab0ae82cf8d9a73b845184a4713cada5
 content-type: application/json; charset=utf-8
 content-length: 150
 date: Mon, 21 Nov 2022 13:18:28 GMT
 server: Python/3.9 aiohttp/3.8.1
 via: 1.1 google
 alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
{"status": "RECEIVED", "transaction_hash": "0x334da4f63cc6309ba2429a70f103872ab0ae82cf8d9a73b845184a4713cada5", "l2_to_l1_messages": [], "events": []}

Exception:
Caused by: kotlinx.serialization.MissingFieldException: Field 'actualFee' is required for type with serial name 'com.swmansion.starknet.data.types.transactions.GatewayTransactionReceipt', but it was missing

@kamilargent kamilargent changed the title MissingFieldException when trying to get transation receipt MissingFieldException when trying to get transaction receipt Nov 21, 2022
@Solpatium Solpatium self-assigned this Nov 22, 2022
@Solpatium Solpatium added the bug Something isn't working label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants