aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas <thomas.b.huang@gmail.com>2018-10-25 11:13:40 +0800
committerThomas <thomas.b.huang@gmail.com>2018-10-25 11:13:40 +0800
commit95b92a1ddcaf478fe612f46c94c8e0600826cfd6 (patch)
treec571e6651c73605d3331dd27b7a28e2ce138137d
parent1d65687ce48bc7f35ee0167c94813f8b3cb3a6ee (diff)
downloadtangerine-wallet-browser-95b92a1ddcaf478fe612f46c94c8e0600826cfd6.tar
tangerine-wallet-browser-95b92a1ddcaf478fe612f46c94c8e0600826cfd6.tar.gz
tangerine-wallet-browser-95b92a1ddcaf478fe612f46c94c8e0600826cfd6.tar.bz2
tangerine-wallet-browser-95b92a1ddcaf478fe612f46c94c8e0600826cfd6.tar.lz
tangerine-wallet-browser-95b92a1ddcaf478fe612f46c94c8e0600826cfd6.tar.xz
tangerine-wallet-browser-95b92a1ddcaf478fe612f46c94c8e0600826cfd6.tar.zst
tangerine-wallet-browser-95b92a1ddcaf478fe612f46c94c8e0600826cfd6.zip
Remove commented out/unused methods
-rw-r--r--app/scripts/metamask-controller.js29
1 files changed, 2 insertions, 27 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 1e02d8488..5a182d3f0 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -980,8 +980,8 @@ module.exports = class MetamaskController extends EventEmitter {
* @param {Object} msgParams - The params passed to eth_signTypedData.
* @param {Function} cb - The callback function, called with the signature.
*/
- newUnsignedTypedMessage (msgParams, req, version) {
- const promise = this.typedMessageManager.addUnapprovedMessageAsync(msgParams, req, version)
+ newUnsignedTypedMessage (msgParams, req) {
+ const promise = this.typedMessageManager.addUnapprovedMessageAsync(msgParams, req)
this.sendUpdate()
this.opts.showUnconfirmedMessage()
return promise
@@ -1275,10 +1275,6 @@ module.exports = class MetamaskController extends EventEmitter {
engine.push(subscriptionManager.middleware)
// watch asset
engine.push(this.preferencesController.requestWatchAsset.bind(this.preferencesController))
- // sign typed data middleware
- // engine.push(this.createTypedDataMiddleware('eth_signTypedData', 'V1').bind(this))
- // engine.push(this.createTypedDataMiddleware('eth_signTypedData_v1', 'V1').bind(this))
- // engine.push(this.createTypedDataMiddleware('eth_signTypedData_v3', 'V3', true).bind(this))
// forward to metamask primary provider
engine.push(createProviderMiddleware({ provider }))
@@ -1544,27 +1540,6 @@ module.exports = class MetamaskController extends EventEmitter {
* @param {Function} - next
* @param {Function} - end
*/
- // createTypedDataMiddleware (methodName, version, reverse) {
- // return async (req, res, next, end) => {
- // const { method, params } = req
- // if (method === methodName) {
- // const promise = this.typedMessageManager.addUnapprovedMessageAsync({
- // data: reverse ? params[1] : params[0],
- // from: reverse ? params[0] : params[1],
- // }, req, version)
- // this.sendUpdate()
- // this.opts.showUnconfirmedMessage()
- // try {
- // res.result = await promise
- // end()
- // } catch (error) {
- // end(error)
- // }
- // } else {
- // next()
- // }
- // }
- // }
/**
* Adds a domain to the {@link BlacklistController} whitelist