Parse error: unknown variant `bool`, expected one of `u16`, `u32`, `u64`, `f64`

Hey ! I also have an issue. Last week I’ve published a package on the devnet but I can’t seem to publish it anymore there error I get is in the screenshot. I haven’t made modifications to the package… I’ve updated the package version, and also when I run the tests and building the package using sui move build I don’t get any errors, so do you know why can I build a package without erros but not publish it ? Is it related to the Client/server api version mismatch ? I have asked an LLM model to check what the issue could be : // Key observations: // 1. No explicit use of bool type // 2. All numeric types used are u64 , which is allowed // 3. The Clock type is used, which might be causing issues if not properly imported or if its API has changed So I really don’t understand why doesn’t the code publish, and I’ve read the releases changes and I haven’t seen that there was a modification of the Clock API… Also, I’ve runned the command : sui client verify-bytecode-meter and it says : │ Package will pass metering check! │ My Sui version is this one : sui 1.29.2-homebrew And I am running it on MacOS Your help would really be appreciated on this !

1 Like

I encountered exactly the same error. My environment is almost identical to elcoder’s.

  • Network: Devnet
  • OS: macOS
  • Sui CLI version: 1.29.2 (installed via brew)

I would also greatly appreciate any help regarding this issue.

2 Likes

Was able to solve it by upgrading to latest SUI version.

cargo install --locked --git https://github.com/MystenLabs/sui.git --branch main sui

My current version is sui 1.31.0-e8b092e3fbd6

You might be having sui 1.29.2-homebrew

2 Likes