In the test infrastructure, the TestHost has a number of helper methods for verifying the transfers that occurred.
It should have the same options for mock functions.
A bit of experimentation will likely be required to figure out what the helper methods should do and return.
The simplest option is something like:
TestHost::mocks_invoked(&self) -> Vec<(ContractAddress, EntrypointName)>
But there could also be method that shows the parameter, amount, etc. used for each invocation of a mock function.
Sub-tasks
[ ] Figure out which helper methods are needed
[ ] Track the data necessary to said methods (for example by adding a vector of invoked mock functions to TestHost)
Task description
In the test infrastructure, the
TestHost
has a number of helper methods for verifying the transfers that occurred. It should have the same options for mock functions. A bit of experimentation will likely be required to figure out what the helper methods should do and return.The simplest option is something like:
TestHost::mocks_invoked(&self) -> Vec<(ContractAddress, EntrypointName)>
But there could also be method that shows the parameter, amount, etc. used for each invocation of a mock function.
Sub-tasks
TestHost
)