Skip to content

Commit fb5aaf6

Browse files
committed
missing pieces
1 parent 1f5b400 commit fb5aaf6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

crates/movy-replay/src/exec.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ pub struct SuiExecutor<T> {
4747
pub metrics: Arc<LimitsMetrics>,
4848
pub registry: prometheus::Registry,
4949
pub movevm: Arc<MoveVM>,
50+
pub deploy_ids: u64,
5051
}
5152

5253
pub struct ExecutionResults {
@@ -87,6 +88,7 @@ where
8788
metrics,
8889
registry,
8990
movevm,
91+
deploy_ids: 0
9092
})
9193
}
9294
pub fn new(db: T) -> Result<Self, MovyError> {
@@ -308,7 +310,8 @@ where
308310

309311
if package_id == ObjectID::ZERO {
310312
// derive id
311-
let id = ObjectID::derive_id(digest, creation_num);
313+
let id = ObjectID::derive_id(digest, self.deploy_ids);
314+
self.deploy_ids += 1;
312315
substitute_package_id(&mut modules, id)?;
313316
} else {
314317
// ensure the modules has the expected id

0 commit comments

Comments
 (0)