Enum sputnikvm::errors::RequireError
source · pub enum RequireError {
Account(Address),
AccountCode(Address),
AccountStorage(Address, U256),
Blockhash(U256),
}
Expand description
Errors stating that the VM requires additional information to continue running.
Variants
Account(Address)
Requires the account at address for the VM to continue
running, this should usually be dealt by
vm.commit_account(AccountCommitment::Full { .. })
or
vm.commit_account(AccountCommitment::Nonexist(..))
.
AccountCode(Address)
Requires the account code at address for the VM to continue
running, this should usually be dealt by
vm.commit_account(AccountCommitment::Code { .. })
.
AccountStorage(Address, U256)
Requires the current value of the storage for the VM to
continue running, this should usually be dealt by
vm.commit_account(AccountCommitment::Storage { .. }
.
Blockhash(U256)
Requires the blockhash for the VM to continue running, this
should usually be dealt by vm.commit_blockhash(..)
.
Trait Implementations
sourceimpl Clone for RequireError
impl Clone for RequireError
sourcefn clone(&self) -> RequireError
fn clone(&self) -> RequireError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RequireError
impl Debug for RequireError
sourceimpl From<RequireError> for EvalError
impl From<RequireError> for EvalError
sourcefn from(val: RequireError) -> EvalError
fn from(val: RequireError) -> EvalError
Converts to this type from the input type.
sourceimpl From<RequireError> for EvalOnChainError
impl From<RequireError> for EvalOnChainError
sourcefn from(val: RequireError) -> EvalOnChainError
fn from(val: RequireError) -> EvalOnChainError
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for RequireError
impl Send for RequireError
impl Sync for RequireError
impl Unpin for RequireError
impl UnwindSafe for RequireError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more