mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-26 12:13:08 +00:00
19 lines
383 B
Rust
19 lines
383 B
Rust
use borsh::{BorshDeserialize, BorshSerialize};
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, BorshSerialize, BorshDeserialize)]
|
|
pub struct Message {
|
|
pub(crate) bytecode: Vec<u8>,
|
|
}
|
|
|
|
impl Message {
|
|
#[must_use]
|
|
pub const fn new(bytecode: Vec<u8>) -> Self {
|
|
Self { bytecode }
|
|
}
|
|
|
|
#[must_use]
|
|
pub fn into_bytecode(self) -> Vec<u8> {
|
|
self.bytecode
|
|
}
|
|
}
|