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

[ETCM-921] Add optional access lists to transactions #1040

Merged
merged 6 commits into from
Jul 8, 2021

Conversation

dzajkowski
Copy link
Contributor

@dzajkowski dzajkowski commented Jul 7, 2021

This is the first PR to allow bodies to contain TypedTransactions and LegacyTransactions at the same time (Magneto HF).

It renames the base transaction type, introduces the TransactionWithAccessList class and fixes unit tests.

More to come.

@dzajkowski dzajkowski force-pushed the feature/etcm-921-optional-access-list-3 branch from e7d3aaf to 42ac0e0 Compare July 7, 2021 14:08
src/main/scala/io/iohk/ethereum/domain/Transaction.scala Outdated Show resolved Hide resolved
src/main/scala/io/iohk/ethereum/domain/Transaction.scala Outdated Show resolved Hide resolved
}
}

case class TransactionWithAccessList(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this by any chance simply be a Transaction? :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would collide with trait Transaction. or do you have a good name for the base one?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TransactionBase maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the deal with typed transactions is that there will be more of them. this one is just the first. I could name it TypedTransaction01.
02 has already been proposed and is being adapted afaik

@dzajkowski dzajkowski merged commit 6b69a2a into develop Jul 8, 2021
@dzajkowski dzajkowski deleted the feature/etcm-921-optional-access-list-3 branch July 8, 2021 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants