Skip to content

Commit ba48da4

Browse files
committed
graph,runtime: Remove root field on transaction receipt (no on Geth)
1 parent 3f68a1c commit ba48da4

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

graph/src/components/ethereum/types.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,13 @@ impl PartialOrd for EthereumTrigger {
347347

348348
pub struct EthereumTransactionReceiptData {
349349
// from receipts
350+
// Geth nodes do not support `root` so it is not included
350351
pub hash: H256,
351352
pub index: Index,
352353
pub cumulative_gas_used: U256,
353354
pub gas_used: Option<U256>,
354355
pub contract_address: Option<H160>,
355356
pub status: Option<U64>,
356-
pub root: Option<H256>,
357357

358358
// from txs
359359
pub from: H160,
@@ -402,7 +402,6 @@ impl<'a> From<&'a EthereumBlock> for FullEthereumBlockDataWithReceipts {
402402
gas_used: transaction_and_receipt.1.gas_used,
403403
contract_address: transaction_and_receipt.1.contract_address,
404404
status: transaction_and_receipt.1.status,
405-
root: transaction_and_receipt.1.root,
406405

407406
// from txs
408407
from: transaction_and_receipt.0.from,

runtime/wasm/src/asc_abi/class.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ pub(crate) struct AscEthereumTransactionReceipt {
479479
pub gas_used: AscPtr<AscBigInt>,
480480
pub contract_address: AscPtr<AscH160>,
481481
pub status: AscPtr<AscBigInt>,
482-
pub root: AscPtr<AscH256>,
483482

484483
pub from: AscPtr<AscH160>,
485484
pub to: AscPtr<AscH160>,

runtime/wasm/src/to_from/external.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ impl ToAscObj<AscEthereumTransactionReceipt> for EthereumTransactionReceiptData
395395
.status
396396
.map(|status| heap.asc_new(&BigInt::from(status)))
397397
.into(),
398-
root: self.root.map(|root| heap.asc_new(&root)).into(),
399398

400399
// // from txs
401400
from: heap.asc_new(&self.from),

0 commit comments

Comments
 (0)