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

feat(node): impl evm and eth #10

Merged
merged 1 commit into from
Dec 13, 2024
Merged

feat(node): impl evm and eth #10

merged 1 commit into from
Dec 13, 2024

Conversation

saiintbrisson
Copy link
Collaborator

Implements ETH and EVM support on both node and runtime. The default precompiles were added. Closes CHAIN-27.

Copy link

linear bot commented Dec 12, 2024

runtime/src/lib.rs Outdated Show resolved Hide resolved
runtime/src/configs/eth.rs Show resolved Hide resolved
node/src/rpc/eth.rs Outdated Show resolved Hide resolved
@saiintbrisson saiintbrisson merged commit 38eb6a6 into main Dec 13, 2024
2 checks passed
pub fn create_full<P, A, CT, CIDP>(
deps: FullDeps<P, A, CT, CIDP>,
subscription_task_executor: SubscriptionTaskExecutor,
pubsub_notification_sinks: Arc<
Copy link
Member

Choose a reason for hiding this comment

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

use the alias

fee_history_cache: FeeHistoryCache,
fee_history_cache_limit: FeeHistoryCacheLimit,
sync: Arc<SyncingService<Block>>,
pubsub_notification_sinks: Arc<
Copy link
Member

Choose a reason for hiding this comment

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

same here

info: Self::SignedInfo,
) -> Option<DispatchResultWithInfo<PostDispatchInfoOf<Self>>> {
match self {
call @ RuntimeCall::Ethereum(pallet_ethereum::Call::transact { .. }) => {
Copy link
Member

Choose a reason for hiding this comment

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

i would use a if let here and not use the at pattern by matching the reference, but maybe match is better

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i just copied the template tbh, if let would indeed be better

@saiintbrisson saiintbrisson deleted the feat/impl-evm-eth-rpcs branch January 8, 2025 19:35
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