anyEmulateFailed function

bool anyEmulateFailed(
  1. List emulateResponses
)

Check the emulate response, if any tx reverted then it is a fail

Implementation

bool anyEmulateFailed(List emulateResponses) {
  for (var item in emulateResponses) {
    if (isEmulateFailed(item)) {
      return true;
    }
  }
  return false;
}