We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd1109 commit d203de1Copy full SHA for d203de1
1 file changed
crates/pallet-native-to-evm-currency-swap/src/lib.rs
@@ -165,11 +165,11 @@ pub mod pallet {
165
166
let evm_trx_hash = transaction.hash();
167
168
- pallet_ethereum::ValidatedTransaction::<T>::apply(
+ let _post_info = pallet_ethereum::ValidatedTransaction::<T>::apply(
169
T::PotEvmBridge::get().into(),
170
transaction,
171
)
172
- .unwrap();
+ .map_err(|dispatch_error_with_post_info| dispatch_error_with_post_info.error)?;
173
174
Self::deposit_event(Event::BalancesSwapped {
175
from: who,
0 commit comments