removed for loop and added Promise.any for parallel polling of wallets.
Promise.any will make sure to connect to the first wallet which meets the required conditions and then stop looking for wallets.
This would essentially reject the promises where conditions are not meeting, resolve the first promise where conditions are met and proceed ahead, ignoring other unresolved promises.
resolves #482
for
loop and addedPromise.any
for parallel polling of wallets.Promise.any
will make sure to connect to the first wallet which meets the required conditions and then stop looking for wallets.