MemoHashAbstract.string constructor
MemoHashAbstract.string(
- String hexString
Implementation
MemoHashAbstract.string(String hexString) {
Uint8List bytes = Util.hexToBytes(hexString.toUpperCase());
if (bytes.length < 32) {
bytes = Util.paddedByteArray(bytes, 32);
} else if (bytes.length > 32) {
throw MemoTooLongException("MEMO_HASH can contain 32 bytes at max.");
}
this._bytes = bytes;
}