- Fixed: collectAndCall missing a parameter
This commit is contained in:
sairajzero 2023-07-07 14:55:53 +05:30
parent e3a0bfe267
commit 051ac5e886

View File

@ -118,7 +118,7 @@ function sendAsset(floID, asset, quantity, type, id) {
balance_locked[sinkID][asset] -= quantity;
});
}
collectAndCall(sinkID, callback); //TODO: add timeout to prevent infinite wait
collectAndCall(SINK_GROUP[type], sinkID, callback); //TODO: add timeout to prevent infinite wait
callbackCollection[type][id] = callback;
if (!(sinkID in balance_locked))
balance_locked[sinkID] = {};