Skip to content

Commit

Permalink
Remove unused XVM call error.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunxw committed Aug 10, 2023
1 parent 5690acd commit 5907746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions chain-extensions/types/xvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ impl From<CallError> for XvmExecutionResult {
SameVmCallDenied => 2,
InvalidTarget => 3,
InputTooLarge => 4,
ExceedMaxWeightLimit => 5,
ReentranceDenied => 6,
ExecutionFailed(_) => 7,
ReentranceDenied => 5,
ExecutionFailed(_) => 6,
};
Self::Err(error_code)
}
Expand Down
2 changes: 0 additions & 2 deletions primitives/src/xvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5907746

Please sign in to comment.