setMemo method
Sets the given memo
inside the transactions.
Implementation
void setMemo(String? memo) {
// Do not include default values as per ADR-027
if (memo == null || memo.isEmpty) {
return;
}
// Create the body if non existing
if (!_stdTx.hasBody()) {
_stdTx.body = TxBody.create();
}
// Set the memo
_stdTx.body.memo = memo;
}