From 051ac5e8866e133b062b06de67533defd553ff6f Mon Sep 17 00:00:00 2001 From: sairajzero Date: Fri, 7 Jul 2023 14:55:53 +0530 Subject: [PATCH] Bug fix - Fixed: collectAndCall missing a parameter --- src/blockchain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockchain.js b/src/blockchain.js index bc0b310..380ba6d 100644 --- a/src/blockchain.js +++ b/src/blockchain.js @@ -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] = {};