mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-02-20 05:13:10 +00:00
17 lines
345 B
Rust
17 lines
345 B
Rust
use borsh::{BorshDeserialize, BorshSerialize};
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, BorshSerialize, BorshDeserialize)]
|
|
pub struct Message {
|
|
pub(crate) bytecode: Vec<u8>,
|
|
}
|
|
|
|
impl Message {
|
|
pub fn new(bytecode: Vec<u8>) -> Self {
|
|
Self { bytecode }
|
|
}
|
|
|
|
pub fn into_bytecode(self) -> Vec<u8> {
|
|
self.bytecode
|
|
}
|
|
}
|