Skip to content

Commit 7a6a0f2

Browse files
committed
fix: allow 0-length memos (to burn dust)
1 parent d71175e commit 7a6a0f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dashtx.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,12 @@ var DashTx = ("object" === typeof module && exports) || {};
191191
let size = 0;
192192

193193
for (let output of outputs) {
194-
if (output.message) {
194+
if ("string" === typeof output.message) {
195195
if (!output.memo) {
196196
output.memo = TxUtils.strToHex(output.message);
197197
}
198198
}
199-
if (output.memo) {
199+
if ("string" === typeof output.memo) {
200200
let memoSize = output.memo.length / 2;
201201
if (memoSize > MAX_U8) {
202202
size += 2;

0 commit comments

Comments
 (0)