rooch-network / rooch

VApp Container with Move Language
https://rooch.network
Apache License 2.0
128 stars 54 forks source link

[Example] publish counter example error #643

Closed yubing744 closed 9 months ago

yubing744 commented 9 months ago
image

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

yubing744 commented 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.

image
jolestar commented 9 months ago

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

jolestar commented 9 months ago

I handle this issue.

jolestar commented 9 months ago

Just clean the ~/.rooch dir.

yubing744 commented 9 months ago

Just clean the ~/.rooch dir.

I tested and deleting the ~/.rooch directory solved this problem for me