start_mock_call
Mocks contract call to a function of a contract at the given address, indefinitely. See mock_call
for comprehensive definition of how it can be used. - contract_address
- targeted contracts' address - function_selector
- hashed name of the target function (can be obtained with selector!
macro) - ret_data
- data to be returned by the function
Fully qualified path: snforge_std::cheatcodes::start_mock_call
pub fn start_mock_call<T, impl TSerde: core::serde::Serde<T>, impl TDestruct: Destruct<T>>(
contract_address: ContractAddress, function_selector: felt252, ret_data: T,
)