-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
Make TxData
functions public
#23154
Comments
cc @s1na |
Hey @fedekunze. I had a quick look and it seems in the lifetime of #21502 these accessor methods started out as public methods but were made private in lightclient@389f039#diff-8fb609018eccff10931645347515b8ecc194992cc4ef9e84ebdea87682dd50c3. I know in general that the |
Thanks @s1na, here's our PR to add support for |
Can you elaborate why you need to serialize tx.data and not the raw bytes of the transaction that already cares for the transaction type and has a spec (EIP) |
We expose |
Rationale
Why should this feature exist?
The existing
TxData
interface defines its functions as unexported, making it impossible to provide our own implementation of these methods.go-ethereum/core/types/transaction.go
Lines 68 to 88 in 3b05318
What are the use-cases?
Our use case is that we need to implement the
TxData
implementation as aproto.Any
that can support all the concrete implementations of the tx data:LegacyTxType
,AccessListTxType
andDynamicFeeTxType
. We want ourTxData
interface to embed theTxData
interface from geth so that we are able to reduce maintenance.Implementation
Do you have ideas regarding the implementation of this feature?
Make the
TxData
functions public.Are you willing to implement this feature?
Yes
The text was updated successfully, but these errors were encountered: