Update index.html
Some checks failed
Workflow push to Dappbundle / Build (push) Has been cancelled

This commit is contained in:
SaketAnand 2025-09-03 20:03:52 +05:30
parent 30bb863467
commit 231ceb1da0

View File

@ -4321,7 +4321,7 @@
return outs; return outs;
} }
// strict: require ALL inputs come from the cashier // strict: require ALL inputs come from the payer/internship distribution address
function isFromPayer(tx, payer) { function isFromPayer(tx, payer) {
const ins = getInputAddresses(tx); const ins = getInputAddresses(tx);
return ins.length > 0 && ins.every(a => a === payer); return ins.length > 0 && ins.every(a => a === payer);
@ -4346,7 +4346,7 @@
if (!floGlobals.payments) floGlobals.payments = Object.create(null); if (!floGlobals.payments) floGlobals.payments = Object.create(null);
items.forEach((tx) => { items.forEach((tx) => {
// sender must be the cashier // sender must be the payer/internship distribution address
if (!isFromPayer(tx, floGlobals.payer)) return; if (!isFromPayer(tx, floGlobals.payer)) return;
// pick the true receiver (first non-payer vout address) // pick the true receiver (first non-payer vout address)