From 3ada7ddc90353f1bbd7d90ca40074c720391063d Mon Sep 17 00:00:00 2001 From: Parth Desai Date: Mon, 18 Dec 2023 18:36:02 +0400 Subject: [PATCH] return `MandatoryValidation` error instead of `BadMandatory` --- domains/runtime/evm/src/lib.rs | 2 +- domains/test/runtime/evm/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/domains/runtime/evm/src/lib.rs b/domains/runtime/evm/src/lib.rs index 7ed4eb84c8..effc2e6897 100644 --- a/domains/runtime/evm/src/lib.rs +++ b/domains/runtime/evm/src/lib.rs @@ -914,7 +914,7 @@ impl_runtime_apis! { let dispatch_info = xt.get_dispatch_info(); if dispatch_info.class == DispatchClass::Mandatory { - return Err(InvalidTransaction::BadMandatory.into()); + return Err(InvalidTransaction::MandatoryValidation.into()); } let encoded_len = uxt.encoded_size(); diff --git a/domains/test/runtime/evm/src/lib.rs b/domains/test/runtime/evm/src/lib.rs index d4f6c72fa2..afd4359e0a 100644 --- a/domains/test/runtime/evm/src/lib.rs +++ b/domains/test/runtime/evm/src/lib.rs @@ -897,7 +897,7 @@ impl_runtime_apis! { let dispatch_info = xt.get_dispatch_info(); if dispatch_info.class == DispatchClass::Mandatory { - return Err(InvalidTransaction::BadMandatory.into()); + return Err(InvalidTransaction::MandatoryValidation.into()); } let encoded_len = uxt.encoded_size();