What is the reason it cannot load the wasm blob by cargo contract? This problem persist even for newly ink project.
2 Answers
I have seen the same error when building my chain binary, it looks like it is related to the toolchain 1.68
and not your code.
When I changed toolchain to nightly-2023-01-01-x86_64-unknown-linux-gnu
it disappeared.
You need to switch to rust stable channel by default and then run cargo contract build --release