If the caller calls the callee function as a mock, the callee function must be implemented on the caller side.
At that time, the function to be implemented is given #[dynamic_link(CalleeContract, user_defined_mock = true)], and the mock to be implemented is #[cfg(not(target_arch = "wasm32"))] is given.
An explanation or link to the above is needed here.
Overview
If the caller calls the callee function as a mock, the callee function must be implemented on the caller side. At that time, the function to be implemented is given
#[dynamic_link(CalleeContract, user_defined_mock = true)]
, and the mock to be implemented is#[cfg(not(target_arch = "wasm32"))]
is given.An explanation or link to the above is needed here.