TronAddress.fromBytes constructor

TronAddress.fromBytes(
  1. List<int> addrBytes
)

Factory method to create a TronAddress from hex bytes

Implementation

factory TronAddress.fromBytes(List<int> addrBytes) {
  final addr = TrxAddressUtils.fromHexBytes(addrBytes);
  return TronAddress._(addr, BytesUtils.toHexString(addrBytes));
}