Skip to content

Commit

Permalink
fix: downgrade transaction to v0
Browse files Browse the repository at this point in the history
Signed-off-by: Yaroslav Bolyukin <[email protected]>
  • Loading branch information
CertainLach committed Feb 14, 2022
1 parent 9017a5c commit f0a12ed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ construct_runtime!(
pub struct TransactionConverter;

impl fp_rpc::ConvertTransaction<UncheckedExtrinsic> for TransactionConverter {
fn convert_transaction(&self, transaction: pallet_ethereum::Transaction) -> UncheckedExtrinsic {
fn convert_transaction(&self, transaction: pallet_ethereum::LegacyTransaction) -> UncheckedExtrinsic {
UncheckedExtrinsic::new_unsigned(
pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),
)
Expand All @@ -1035,7 +1035,7 @@ impl fp_rpc::ConvertTransaction<UncheckedExtrinsic> for TransactionConverter {
impl fp_rpc::ConvertTransaction<opaque::UncheckedExtrinsic> for TransactionConverter {
fn convert_transaction(
&self,
transaction: pallet_ethereum::Transaction,
transaction: pallet_ethereum::LegacyTransaction,
) -> opaque::UncheckedExtrinsic {
let extrinsic = UncheckedExtrinsic::new_unsigned(
pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),
Expand Down Expand Up @@ -1349,7 +1349,7 @@ impl_runtime_apis! {

fn extrinsic_filter(xts: Vec<<Block as sp_api::BlockT>::Extrinsic>) -> Vec<pallet_ethereum::Transaction> {
xts.into_iter().filter_map(|xt| match xt.0.function {
Call::Ethereum(pallet_ethereum::Call::transact { transaction }) => Some(transaction),
Call::Ethereum(pallet_ethereum::Call::transact { transaction }) => Some(pallet_ethereum::Transaction::Legacy(transaction)),
_ => None
}).collect()
}
Expand Down

0 comments on commit f0a12ed

Please sign in to comment.