isHermezBjjAddress function

bool isHermezBjjAddress(
  1. String? test
)

Checks if given string matches regex of a Hermez BJJ address

@param {String} test

@returns {bool}

Implementation

bool isHermezBjjAddress(String? test) {
  if (test != null && bjjAddressPattern.hasMatch(test)) {
    return true;
  }
  return false;
}