Issue with For loop compilation #65
Answered
by
gregnazario
gregnazario
asked this question in
Questions
-
From lollobene on Discord: hey guys, I'm trying to compile using devnet git dependencies like this in Move.toml: [dependencies]
AptosFramework = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-framework/", rev = "devnet" } and getting this error: error[E01002]: unexpected token
┌─ /Users/lollobene/.move/https___github_com_aptos-labs_aptos-core_git_devnet/aptos-move/framework/aptos-framework/sources/randomness.move:520:16
│
520 │ for (i in 0..n) {
│ - ^ Expected ')'
│ │
│ To match this '('
{
"Error": "Move compilation failed: Compilation error"
} |
Beta Was this translation helpful? Give feedback.
Answered by
gregnazario
Mar 15, 2024
Replies: 1 comment 3 replies
-
Maybe I needed to be more precise. As you can see from the error message, this error is raised from the module This error message appears if I set |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2.4.0 and newer support for loops https://github.com/aptos-labs/aptos-core/blob/main/crates/aptos/CHANGELOG.md#240---20240105