Enum near_vm_errors::EvmError [−][src]
Errors specifically from native EVM.
Variants
Contract not found.
Fatal failure due conflicting addresses on contract deployment.
Contract deployment failure.
Contract execution failed, revert the state.
Failed to parse arguments.
No deposit when expected.
Insufficient funds to finish the operation.
U256 overflow.
Method not found.
Invalid signature when recovering.
Invalid nonce.
Invalid sub EVM account.
Won't withdraw to itself.
Too small NEAR deposit.
OutOfGas
is returned when transaction execution runs out of gas.
The state should be reverted to the state from before the
transaction execution. But it does not mean that transaction
was invalid. Balance still should be transfered and nonce
should be increased.
BadJumpDestination
is returned when execution tried to move
to position that wasn't marked with JUMPDEST instruction
Fields of BadJumpDestination
destination: u64
Position the code tried to jump to.
BadInstructions
is returned when given instruction is not supported
Fields of BadInstruction
instruction: u8
Unrecognized opcode
StackUnderflow
when there is not enough stack elements to execute instruction
Fields of StackUnderflow
When execution would exceed defined Stack Limit
Fields of OutOfStack
BuiltIn(String)
Built-in contract failed on given input
When execution tries to modify the state in static context
Out of bounds access in RETURNDATACOPY.
Execution has been reverted with REVERT.
Invalid method name to parse
Invalid function args in meta txn
Chain ID doesn't match. Trying to use transaction signed for a different chain.
Trait Implementations
impl BorshDeserialize for EvmError where
Vec<u8>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
String: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
String: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
String: BorshDeserialize,
[src]
Vec<u8>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
String: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
String: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
String: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
pub fn is_u8() -> bool
[src]
impl BorshSerialize for EvmError where
Vec<u8>: BorshSerialize,
Vec<u8>: BorshSerialize,
Vec<u8>: BorshSerialize,
u64: BorshSerialize,
u8: BorshSerialize,
String: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
String: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
String: BorshSerialize,
[src]
Vec<u8>: BorshSerialize,
Vec<u8>: BorshSerialize,
Vec<u8>: BorshSerialize,
u64: BorshSerialize,
u8: BorshSerialize,
String: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
String: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
String: BorshSerialize,
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>
[src]
pub fn is_u8() -> bool
[src]
impl Clone for EvmError
[src]
impl Debug for EvmError
[src]
impl<'de> Deserialize<'de> for EvmError
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for EvmError
[src]
impl PartialEq<EvmError> for EvmError
[src]
impl Serialize for EvmError
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for EvmError
[src]
impl StructuralPartialEq for EvmError
[src]
Auto Trait Implementations
impl RefUnwindSafe for EvmError
[src]
impl Send for EvmError
[src]
impl Sync for EvmError
[src]
impl Unpin for EvmError
[src]
impl UnwindSafe for EvmError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,