Skip to content

[Feature] Make AnyTransactionReceipt a dedicated type #3149

@mattsse

Description

@mattsse

Component

consensus, eips, genesis

Describe the feature you would like

we have this alias

pub type AnyTransactionReceipt = WithOtherFields<TransactionReceipt<AnyReceiptEnvelope<Log>>>;

whichs makes it hard to add convenience conversion functions

we want this to be like

pub struct AnyRpcTransaction(pub WithOtherFields<Transaction<AnyTxEnvelope>>);

instead

TODO

  • introduce dedicated struct in network/any/transaction
  • keep the existing type alias for now, because replacing this would be a breaking change

Additional context

@0xChaddB

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions