aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/createProviderMiddleware.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/createProviderMiddleware.js')
-rw-r--r--app/scripts/lib/createProviderMiddleware.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/scripts/lib/createProviderMiddleware.js b/app/scripts/lib/createProviderMiddleware.js
index 4e667bac2..8a939ba4e 100644
--- a/app/scripts/lib/createProviderMiddleware.js
+++ b/app/scripts/lib/createProviderMiddleware.js
@@ -1,6 +1,10 @@
module.exports = createProviderMiddleware
-// forward requests to provider
+/**
+ * Forwards an HTTP request to the current Web3 provider
+ *
+ * @param {{ provider: Object }} config Configuration containing current Web3 provider
+ */
function createProviderMiddleware ({ provider }) {
return (req, res, next, end) => {
provider.sendAsync(req, (err, _res) => {