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.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/scripts/lib/createProviderMiddleware.js b/app/scripts/lib/createProviderMiddleware.js
deleted file mode 100644
index 8a939ba4e..000000000
--- a/app/scripts/lib/createProviderMiddleware.js
+++ /dev/null
@@ -1,16 +0,0 @@
-module.exports = createProviderMiddleware
-
-/**
- * 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) => {
- if (err) return end(err)
- res.result = _res.result
- end()
- })
- }
-}