Finschia / cosmwasm

Fast and reusable WebAssembly smart contract runtime(and library) for finschia-sdk.
Apache License 2.0
27 stars 14 forks source link

Missing explanation about mock method #305

Closed Kynea0b closed 1 year ago

Kynea0b commented 1 year ago

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.