Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][Compiler-v2] Diemframework cannot be compiled by V2 #11723

Closed
rahxephon89 opened this issue Jan 22, 2024 · 1 comment
Closed

[Bug][Compiler-v2] Diemframework cannot be compiled by V2 #11723

rahxephon89 opened this issue Jan 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working compiler-v2 stale-exempt Prevents issues from being automatically marked and closed as stale

Comments

@rahxephon89
Copy link
Contributor

🐛 Bug

When compiling experimental package in third_party/move/documentation/examples/diem-framework/move-packages/experimental using V2, following errors are raised:

    ┌─ /Users/tengzhang/aptos-core/third_party/move/documentation/examples/diem-framework/move-packages/experimental/../core/sources/configs/DiemSystem.move:286:27
    │
286 │         if (config_ref == &new_validator_config) {
    │                           ^^^^^^^^^^^^^^^^^^^^^

error: expected `|vector<MultiToken::TokenData<TokenType>>|?1` but found `u64`
    ┌─ /Users/tengzhang/aptos-core/third_party/move/documentation/examples/diem-framework/move-packages/experimental/sources/MultiToken.move:163:28
    │
163 │             invariant i <= len(gallery);
    │                            ^^^^^^^^^^^^

error: expected `|vector<MultiToken::Token<TokenType>>|?1` but found `u64`
    ┌─ /Users/tengzhang/aptos-core/third_party/move/documentation/examples/diem-framework/move-packages/experimental/sources/MultiTokenBalance.move:103:28
    │
103 │             invariant i <= len(gallery);
    │                            ^^^^^^^^^^^^
@rahxephon89 rahxephon89 added bug Something isn't working stale-exempt Prevents issues from being automatically marked and closed as stale compiler-v2 labels Jan 22, 2024
@rahxephon89 rahxephon89 self-assigned this Jan 22, 2024
@rahxephon89
Copy link
Contributor Author

Close this one because #11737 and #11738 has more detail

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Move Language and Runtime Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler-v2 stale-exempt Prevents issues from being automatically marked and closed as stale
Projects
Status: Done
Development

No branches or pull requests

1 participant