mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-14 16:51:04 +00:00
77e0344d80
- remove the __sha3 function symbol: this is provided by the pallet - remove the storage address spaces: they are not mapped into memory --------- Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
21 lines
471 B
Rust
21 lines
471 B
Rust
//! The address space aliases.
|
|
|
|
/// The address space aliases.
|
|
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
|
pub enum AddressSpace {
|
|
/// The stack memory.
|
|
#[default]
|
|
Stack,
|
|
/// The heap memory.
|
|
Heap,
|
|
}
|
|
|
|
impl From<AddressSpace> for inkwell::AddressSpace {
|
|
fn from(value: AddressSpace) -> Self {
|
|
match value {
|
|
AddressSpace::Stack => Self::from(0),
|
|
AddressSpace::Heap => Self::from(1),
|
|
}
|
|
}
|
|
}
|