You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I can mock the returndata of a contract address call, but I cannot specify for which calldata a specific returndata should be returned.
// Today: will mock all calls to the `storage` entrypoint of `contract_starknet_address`start_mock_call::<u256>(contract_starknet_address,selector!("storage"),0);
What I would like:
let key:u256 = 0xabcd;let calldata = array![];Serde::serialize(@key, ref calldata);start_mock_call_with::<u256>(contract_starknet_address,selector!("storage"), calldata.span(),0);
That allows me to return different values based on the key that I'm querying
The text was updated successfully, but these errors were encountered:
Which component is your feature related to?
Forge
Feature Request
Today I can mock the returndata of a contract address call, but I cannot specify for which calldata a specific returndata should be returned.
What I would like:
That allows me to return different values based on the key that I'm querying
The text was updated successfully, but these errors were encountered: