Skip to content

Commit d203de1

Browse files
Handle dispatch result with post info
1 parent cfd1109 commit d203de1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/pallet-native-to-evm-currency-swap/src

crates/pallet-native-to-evm-currency-swap/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ pub mod pallet {
165165

166166
let evm_trx_hash = transaction.hash();
167167

168-
pallet_ethereum::ValidatedTransaction::<T>::apply(
168+
let _post_info = pallet_ethereum::ValidatedTransaction::<T>::apply(
169169
T::PotEvmBridge::get().into(),
170170
transaction,
171171
)
172-
.unwrap();
172+
.map_err(|dispatch_error_with_post_info| dispatch_error_with_post_info.error)?;
173173

174174
Self::deposit_event(Event::BalancesSwapped {
175175
from: who,

0 commit comments

Comments
 (0)