We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f5b400 commit fb5aaf6Copy full SHA for fb5aaf6
1 file changed
crates/movy-replay/src/exec.rs
@@ -47,6 +47,7 @@ pub struct SuiExecutor<T> {
47
pub metrics: Arc<LimitsMetrics>,
48
pub registry: prometheus::Registry,
49
pub movevm: Arc<MoveVM>,
50
+ pub deploy_ids: u64,
51
}
52
53
pub struct ExecutionResults {
@@ -87,6 +88,7 @@ where
87
88
metrics,
89
registry,
90
movevm,
91
+ deploy_ids: 0
92
})
93
94
pub fn new(db: T) -> Result<Self, MovyError> {
@@ -308,7 +310,8 @@ where
308
310
309
311
if package_id == ObjectID::ZERO {
312
// derive id
- let id = ObjectID::derive_id(digest, creation_num);
313
+ let id = ObjectID::derive_id(digest, self.deploy_ids);
314
+ self.deploy_ids += 1;
315
substitute_package_id(&mut modules, id)?;
316
} else {
317
// ensure the modules has the expected id
0 commit comments