fn get_state_diff(state: &mut Cheatcodes) -> Result
Expand description
Consumes recorded account accesses and returns them as an abi encoded array of AccountAccess. If there are no accounts were recorded as accessed, an abi encoded empty array is returned.
In the case where stopAndReturnStateDiff
is called at a lower
depth than startStateDiffRecording
, multiple Vec<RecordedAccountAccesses>
will be flattened, preserving the order of the accesses.