@unielon/coin-dogecoin
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -8,2 +8,3 @@ /// <reference types="node" /> | ||
revealAddr: string; | ||
receiveAddr?: string; | ||
repeat: number; | ||
@@ -10,0 +11,0 @@ }; |
@@ -87,2 +87,3 @@ "use strict"; | ||
let body = JSON.parse(inscriptionDataList[i].body); | ||
let receiveAddr = inscriptionDataList[i].receiveAddr || ''; | ||
let repeats = 1; | ||
@@ -92,3 +93,12 @@ if (body.p == drc20P && opMint == body.op) { | ||
} | ||
tx.addOutput(inscriptionTxCtxData.revealPkScript, defaultRevealOutValue * repeats); | ||
if (receiveAddr) { | ||
const receiveAddrList = receiveAddr.split(','); | ||
receiveAddrList.map(item => { | ||
const changePkScript = bitcoin.address.toOutputScript(item, network); | ||
tx.addOutput(changePkScript, defaultRevealOutValue * repeats); | ||
}); | ||
} | ||
else { | ||
tx.addOutput(inscriptionTxCtxData.revealPkScript, defaultRevealOutValue * repeats); | ||
} | ||
const emptySignature = Buffer.alloc(71); | ||
@@ -95,0 +105,0 @@ const inscriptionBuilder = []; |
{ | ||
"name": "@unielon/coin-dogecoin", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
846780
11748