Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 26792f9

Browse files
committedApr 27, 2024
fix: allow 0-length memos (to burn dust)
1 parent 9f871a7 commit 26792f9

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)
Please sign in to comment.