getEthereumAddress function
Gets the ethereum address part of a Hermez address
@param {String} hezEthereumAddress
@returns {String}
Implementation
String? getEthereumAddress(String? hezEthereumAddress) {
if (hezEthereumAddress != null &&
hezEthereumAddress.startsWith(hermezPrefix)) {
return hezEthereumAddress.replaceFirst(hermezPrefix, '');
} else {
return hezEthereumAddress;
}
}