Skip to content

Switch to transaction converter runtime api#28

Merged
NZT48 merged 2 commits intoOriginTrail:feature/frontierfrom
JoshOrndorff:joshy-tx-converter-runtime-api
Jul 15, 2022
Merged

Switch to transaction converter runtime api#28
NZT48 merged 2 commits intoOriginTrail:feature/frontierfrom
JoshOrndorff:joshy-tx-converter-runtime-api

Conversation

@JoshOrndorff
Copy link
Copy Markdown

This reflects the changes from polkadot-evm/frontier#559

I've taken the simpler approach that entirely removes the old hard-coded converter. But if this code is already used in production, you need to restore that converter and provide it on the client side as well.

@JoshOrndorff JoshOrndorff changed the base branch from develop to feature/evm July 15, 2022 18:02
@JoshOrndorff JoshOrndorff changed the base branch from feature/evm to feature/frontier July 15, 2022 18:03
Comment on lines +873 to +879
impl fp_rpc::ConvertTransactionRuntimeApi<Block> for Runtime {
fn convert_transaction(transaction: EthereumTransaction) -> <Block as BlockT>::Extrinsic {
UncheckedExtrinsic::new_unsigned(
pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),
)
}
}
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Basically if you need the backwards compatibility, this is the only change you need.

@NZT48
Copy link
Copy Markdown
Contributor

NZT48 commented Jul 15, 2022

Thanks for helping @JoshOrndorff, old transaction converter implementation is not in production, so I guess there are no changes required :)

@NZT48 NZT48 merged commit 50bf45c into OriginTrail:feature/frontier Jul 15, 2022
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.

2 participants