CompiledMessage constructor

CompiledMessage(
  1. ByteArray data
)

Implementation

factory CompiledMessage(ByteArray data) {
  switch (TransactionVersion.fromByteArray(data)) {
    case TransactionVersion.legacy:
      return _decompileLegacy(data);
    case TransactionVersion.v0:
      return _decodeV0(data);
  }
}