fuel_vm/
constraints.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Types to help constrain inputs to functions to only what is used.

use fuel_types::ContractId;

pub mod reg_key;

/// Location of an instructing collected during runtime
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct InstructionLocation {
    /// Context, i.e. current contract. None if running a script.
    pub context: Option<ContractId>,
    /// Offset from the IS register
    pub offset: u64,
}