toETHAddress method

ETHAddress toETHAddress()

To Ethereum address

Implementation

ETHAddress toETHAddress() {
  final toBytes = BytesUtils.fromHexString(_hexAddress);

  /// remove tron 0x41 prefix from bytes
  return ETHAddress.fromBytes(
      toBytes.sublist(toBytes.length - TronAddress.lengthInBytes));
}