I’m encountering an issue while working with my Rust project. The following error is appearing when I try to build the project:
error: cannot find derive macro `StateClone` in this scope
--> src\state.rs:71:10
|
71 | #[derive(StateClone, Serial, DeserialWithState)]
| ^^^^^^^^^^
It seems that the StateClone derive macro from concordium-std is not being recognized in the current scope. I’ve already tried importing it as follows, but the issue persists:
StateClone was deprecated and removed in concordium-std 8.0.0+.
Its main purpose was tied to unit testing using older version of the deprecated testing_infrastructure, so simply removing it should work.
Thanks I have done that and Initialize the contract also but when trying to do bid having error same all time while I do everything correct.
this is the link where I was trying