Skip to content

Commit

Permalink
Fix bug when contract not has features: native-simulatorg
Browse files Browse the repository at this point in the history
  • Loading branch information
joii2020 committed Jan 17, 2025
1 parent 5f8755a commit 5707685
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,11 @@
#[macro_export]
macro_rules! debug {
($fmt:literal) => {
#[cfg(all(debug_assertions, feature = "native-simulator"))]
$crate::syscalls::debug(format!($fmt));
#[cfg(all(debug_assertions, not(feature = "native-simulator")))]
#[cfg(debug_assertions)]
$crate::syscalls::debug(alloc::format!($fmt));
};
($fmt:literal, $($args:expr),+) => {
#[cfg(all(debug_assertions, feature = "native-simulator"))]
$crate::syscalls::debug(format!($fmt, $($args), +));
#[cfg(all(debug_assertions, not(feature = "native-simulator")))]
#[cfg(debug_assertions)]
$crate::syscalls::debug(alloc::format!($fmt, $($args), +));
};
}

0 comments on commit 5707685

Please sign in to comment.