-
Originally from Stack Overflow. Move is generally pretty Rust-like, the syntax for using dependencies looks very similar: use aptos_framework::aptos_account; As such, I'd expect that if I want to use something only in tests, I'd do this: #[cfg(test)]
use aptos_framework::aptos_account; However this doesn't work in Move, I suppose because there is no notion of cfg (indeed, a search through all the Move code in aptos-core finds no use of |
Beta Was this translation helpful? Give feedback.
Answered by
banool
Mar 7, 2024
Replies: 1 comment
-
Close! You can do it like this: #[test_only]
use aptos_framework::aptos_account; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
banool
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Close! You can do it like this: