Skip to content

Commit e0e7a60

Browse files
committed
fix: allow 0-length memos (to burn dust)
1 parent 72858a7 commit e0e7a60

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
@@ -194,12 +194,12 @@ var DashTx = ("object" === typeof module && exports) || {};
194194
let size = 0;
195195

196196
for (let output of outputs) {
197-
if (output.message) {
197+
if ("string" === typeof output.message) {
198198
if (!output.memo) {
199199
output.memo = TxUtils.strToHex(output.message);
200200
}
201201
}
202-
if (output.memo) {
202+
if ("string" === typeof output.memo) {
203203
let memoSize = output.memo.length / 2;
204204
if (memoSize > MAX_U8) {
205205
size += 2;

0 commit comments

Comments
 (0)