diff --git a/chain-extensions/types/xvm/src/lib.rs b/chain-extensions/types/xvm/src/lib.rs index 2c07a855c..c42b71c4d 100644 --- a/chain-extensions/types/xvm/src/lib.rs +++ b/chain-extensions/types/xvm/src/lib.rs @@ -41,9 +41,8 @@ impl From for XvmExecutionResult { SameVmCallDenied => 2, InvalidTarget => 3, InputTooLarge => 4, - ExceedMaxWeightLimit => 5, - ReentranceDenied => 6, - ExecutionFailed(_) => 7, + ReentranceDenied => 5, + ExecutionFailed(_) => 6, }; Self::Err(error_code) } diff --git a/primitives/src/xvm.rs b/primitives/src/xvm.rs index 3d40fe436..4b08aa696 100644 --- a/primitives/src/xvm.rs +++ b/primitives/src/xvm.rs @@ -66,8 +66,6 @@ pub enum CallError { InvalidTarget, /// Input is too large. InputTooLarge, - /// Exceed max weight limit. - ExceedMaxWeightLimit, /// Reentrance is not allowed. ReentranceDenied, /// The call failed on EVM or WASM execution.