Closed yubing744 closed 9 months ago
I created a new project using the rooch move new my_move_project command, wrote a simple counter code, and got the same error when doing a publish.
thread 'tokio-runtime-worker' panicked at 'pre_execute function should always success: VMError { major_status: VALUE_DESERIALIZATION_ERROR, sub_status: None, message: None, exec_state: None, location: Module(ModuleId { address: 0000000000000000000000000000000000000000000000000000000000000002, name: Identifier("bcs") }), indices: [], offsets: [(FunctionDefinitionIndex(0), 0)] }', moveos/moveos/src/vm/moveos_vm.rs:518:18
I handle this issue.
Just clean the ~/.rooch dir.
Just clean the ~/.rooch dir.
I tested and deleting the ~/.rooch directory solved this problem for me
Steps to reproduce: 1、git clone examples/counter/Move.toml](https://github.com/rooch-network/rooch.git 2、git checkout main 3、cargo build 4、./target/debug/rooch init 5、replace dev-addresses in examples/counter/Move.toml 6、./target/debug/rooch server start 7、./target/debug/rooch move publish -p ./examples/counter/ --sender-account default -d