parseAsmForMemo function
https://github.com/moontreeapp/moontree/issues/5 we assume one transaction can only have one OP_RETURN
Implementation
String parseAsmForMemo(String asm) {
var x = asm.split(' ');
var i = 0;
for (var item in x) {
if (item == 'OP_RETURN') return x[i + 1];
i = i + 1;
}
return '';
}