We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f871a7 commit 26792f9Copy full SHA for 26792f9
dashtx.js
@@ -191,12 +191,12 @@ var DashTx = ("object" === typeof module && exports) || {};
191
let size = 0;
192
193
for (let output of outputs) {
194
- if (output.message) {
+ if ("string" === typeof output.message) {
195
if (!output.memo) {
196
output.memo = TxUtils.strToHex(output.message);
197
}
198
199
- if (output.memo) {
+ if ("string" === typeof output.memo) {
200
let memoSize = output.memo.length / 2;
201
if (memoSize > MAX_U8) {
202
size += 2;
0 commit comments