Skip to content

Commit

Permalink
fixup! undo perm controller reorganization
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Jan 15, 2020
1 parent a1c7921 commit cdbbaa1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/scripts/controllers/permissions/enums.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
WALLET_PREFIX: 'wallet_',
HISTORY_STORE_KEY: 'permissionsHistory',
LOG_STORE_KEY: 'permissionsLog',
Expand Down
4 changes: 0 additions & 4 deletions app/scripts/controllers/permissions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ import {
NOTIFICATION_NAMES,
} from './enums'

export const CAVEAT_NAMES = {
exposedAccounts: 'exposedAccounts',
}

export class PermissionsController {

constructor (
Expand Down
10 changes: 4 additions & 6 deletions app/scripts/controllers/permissions/permissionsLog.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

const clone = require('clone')
const { isValidAddress } = require('ethereumjs-util')
const { CAVEAT_NAMES } = require('./enums')
import clone from 'clone'
import { isValidAddress } from 'ethereumjs-util'
import { CAVEAT_NAMES } from './enums'

const LOG_LIMIT = 100

Expand All @@ -13,7 +13,7 @@ const getAccountToTimeMap = (accounts, time) => accounts.reduce(
* Create middleware for logging requests and responses to restricted and
* permissions-related methods.
*/
class PermissionsLogController {
export default class PermissionsLogController {

constructor ({
walletPrefix, restrictedMethods, store,
Expand Down Expand Up @@ -305,5 +305,3 @@ function cloneObj (obj) {
}
return { ...obj }
}

module.exports = PermissionsLogController

0 comments on commit cdbbaa1

Please sign in to comment.