Skip to content

Commit 35f43db

Browse files
committed
fix
1 parent 826392e commit 35f43db

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

crates/movy-fuzz/src/executor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ where
176176
success,
177177
};
178178

179-
if tracing::log_enabled!(tracing::Level::Debug) {
179+
if tracing::enabled!(tracing::Level::DEBUG) {
180180
for ev in events.iter() {
181181
if let Some((st, ev)) = state.fuzz_state().decode_sui_event(ev)? {
182182
tracing::debug!(

crates/movy-fuzz/src/mutators/arg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ where
155155
let constraints = cmp_constraints
156156
.into_iter()
157157
.chain(target_function_logs.iter().filter_map(|log| match log {
158-
tracing::CastLog(c) => c.constraint.clone(),
159-
tracing::ShlLog(s) => s.constraint.clone(),
158+
Log::CastLog(c) => c.constraint.clone(),
159+
Log::ShlLog(s) => s.constraint.clone(),
160160
_ => None,
161161
}))
162162
.collect::<Vec<_>>();

crates/movy-sui-stds/movy/sources/cheats.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public fun dummy_tx_hash_with_hint(hint: u64): vector<u8> {
1010
tx_hash
1111
}
1212

13-
public fun new_from_hint(
13+
public fun new_tx_ctx_from_hint(
1414
addr: address,
1515
hint: u64,
1616
epoch: u64,

crates/movy/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use clap::{Parser, Subcommand};
22

33
use crate::{analysis::AnlaysisArgs, sui::SuiArgs};
4+
use std::io::IsTerminal;
45

56
mod analysis;
67
mod aptos;

test-data/counter/tests/movy.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public fun movy_init(
1414
deployer: address,
1515
attacker: address
1616
) {
17-
let ctx = cheats::new_from_hint(deployer, 1, 1, 1, 1);
17+
let ctx = cheats::new_tx_ctx_from_hint(deployer, 1, 1, 1, 1);
1818
}
1919

2020
// Helper

0 commit comments

Comments
 (0)