errorFromSelector method
Retrieves an error fragment from the contract ABI from selector.
Implementation
AbiErrorFragment errorFromSelector(String selectorHex) {
final selector = BytesUtils.fromHexString(selectorHex)
.sublist(0, ABIConst.selectorLength);
return errors
.singleWhere((element) => bytesEqual(selector, element.selector));
}