Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/hooks/useBCH.js
Show First 20 Lines • Show All 441 Lines • ▼ Show 20 Lines | ) => { | ||||
// only build the OP_RETURN output if the user supplied it | // only build the OP_RETURN output if the user supplied it | ||||
if ( | if ( | ||||
(optionalOpReturnMsg && | (optionalOpReturnMsg && | ||||
typeof optionalOpReturnMsg !== 'undefined' && | typeof optionalOpReturnMsg !== 'undefined' && | ||||
optionalOpReturnMsg.trim() !== '') || | optionalOpReturnMsg.trim() !== '') || | ||||
airdropFlag | airdropFlag | ||||
) { | ) { | ||||
const opReturnData = generateOpReturnScript( | const opReturnData = generateOpReturnScript( | ||||
BCH, | |||||
optionalOpReturnMsg, | optionalOpReturnMsg, | ||||
encryptionFlag, | encryptionFlag, | ||||
airdropFlag, | airdropFlag, | ||||
airdropTokenId, | airdropTokenId, | ||||
encryptedEj, | encryptedEj, | ||||
); | ); | ||||
txBuilder.addOutput(opReturnData, 0); | txBuilder.addOutput(opReturnData, 0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |