Skip to content

Commit c5004c9

Browse files
author
Your Name
committed
execution: use assembly-simulator bytecode type
1 parent fe9e97a commit c5004c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

massa-execution/src/sce_ledger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crate::types::Bytecode;
21
use crate::ExecutionError;
2+
use assembly_simulator::Bytecode;
33
use massa_hash::hash::Hash;
44
use massa_hash::HASH_SIZE_BYTES;
55
use massa_models::hhasher::BuildHHasher;

massa-execution/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::sce_ledger::{FinalLedger, SCELedger, SCELedgerChanges, SCELedgerStep};
22
use crate::BootstrapExecutionState;
3+
use assembly_simulator::Bytecode;
34
use massa_models::address::AddressHashSet;
45
use massa_models::execution::ExecuteReadOnlyResponse;
56
/// Define types used while executing block bytecodes
@@ -9,7 +10,6 @@ use std::{collections::VecDeque, sync::Arc};
910
use tokio::sync::oneshot;
1011

1112
pub(crate) type StepHistory = VecDeque<StepHistoryItem>;
12-
pub type Bytecode = Vec<u8>;
1313

1414
/// A StepHistory item representing the consequences of a given execution step
1515
#[derive(Debug, Clone)]

0 commit comments

Comments
 (0)