-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix for receipt format from GetTxnBodiesForTxBlock(Ex) #1896
base: main
Are you sure you want to change the base?
Fix for receipt format from GetTxnBodiesForTxBlock(Ex) #1896
Conversation
maxconway
commented
Nov 25, 2024
- closes Z2-Converter : GetTxnBodiesForTxBlock shows incorrect data #1883
9f73fe0
to
8fcc925
Compare
zilliqa/src/api/zil.rs
Outdated
@@ -1036,6 +1037,11 @@ fn extract_transaction_bodies(block: &Block, node: &Node) -> Result<Vec<Transact | |||
let receipt = node | |||
.get_transaction_receipt(*hash)? | |||
.ok_or(anyhow!("Transaction receipt missing"))?; | |||
let receipt_response = TransactionReceiptResponse { | |||
cumulative_gas: ScillaGas(receipt.cumulative_gas_used.0).to_string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be receipt.cumulative_gas_used.into()
, so the amount gets converted from EvmGas
to ScillaGas
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied this from the code for GetTxResponse, so I'm guessing it's wrong there too, I'll fix that at the same time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed
Bencher Report
Click to view all benchmark results
|