Error thrown while compiling using --move-2 #606
Replies: 1 comment
-
Just Update the Aptos CLI Version |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Discord user ID
No response
Describe your question in detail.
I'm trying to compile a smart contract that has following imports:
`
use std::error;
use std::option::{Self, Option};
use std::string::{Self, String,utf8};
use std::signer;
use aptos_framework::object::{Self, ConstructorRef, Object, ExtendRef};
use aptos_token_objects::collection;
use aptos_token_objects::property_map;
use aptos_token_objects::token;
use aptos_framework::event;
use aptos_std::string_utils::{to_string};
use aptos_std::from_bcs;
use aptos_std::smart_table;
use aptos_std::simple_map;
`
Now even though I have not included the big_ordered_map.move it throwing me error as follow:
bug: unexpected type: _
┌─ /home/hp/.move/https___github_com_aptos-labs_aptos-core_git_mainnet/aptos-move/framework/aptos-framework/sources/datastructures/big_ordered_map.move:396:24
│
396 │ public(friend) fun iter_borrow_mut<K: store, V: store>(self: &IteratorPtr, map: &mut BigOrderedMap<K, V>): &mut V {
│ ^^^^^^^^^^^^^^^
{
"Error": "Move compilation failed: exiting with assembling errors"
}
What error, if any, are you getting?
bug: unexpected type: _
┌─ /home/hp/.move/https___github_com_aptos-labs_aptos-core_git_mainnet/aptos-move/framework/aptos-framework/sources/datastructures/big_ordered_map.move:396:24
│
396 │ public(friend) fun iter_borrow_mut<K: store, V: store>(self: &IteratorPtr, map: &mut BigOrderedMap<K, V>): &mut V {
│ ^^^^^^^^^^^^^^^
{
"Error": "Move compilation failed: exiting with assembling errors"
}
What have you tried or looked at? Or how can we reproduce the error?
No response
Which operating system are you using?
Linux (Ubuntu, Fedora, Windows WSL, etc.)
Which SDK or tool are you using? (if any)
N/A
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions