[][src]Function cita_vm::exec_static

pub fn exec_static<B: DB + 'static>(
    block_provider: Arc<dyn BlockDataProvider>,
    state_provider: Arc<RefCell<State<B>>>,
    evm_context: Context,
    config: Config,
    tx: Transaction
) -> Result<InterpreterResult, Error>

Handle the call request in read only mode. Note:

  1. tx.to shouldn't be none
  2. tx.nonce is just omited
  3. tx.value must be 0. This is due to solidity's check.

This function is similar with exec, but all check & checkpoints are removed.