Crate calimero_sdk
source ·Re-exports
pub use macros::*;
Modules
Macros
- This macro needs to be defined before making a cross_call, or receiving a cross_call_receive_response
Attribute Macros
- Modifies fn signature under impl for any fn denoted with #[calimero_receive_response] so that the last input arg of such function is renamed to
response
with Option<Vec> as type, the argument initially provided by the developer is used in generated code and into it - the response is deserialized. If the developer used optional type, error can be handled in the contract method, otherwise the method will panic if response
is None