From 405c5da836ed3985e1792b59a33e0b2484082337 Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 21 May 2019 11:15:38 +0800 Subject: [PATCH] refactor(neuron-wallet): clean asw related code --- packages/neuron-wallet/src/channel/terminal.ts | 1 - packages/neuron-wallet/src/channel/wallet.ts | 2 +- packages/neuron-wallet/src/commands/commands.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/neuron-wallet/src/channel/terminal.ts b/packages/neuron-wallet/src/channel/terminal.ts index 2d993d6b24..753b678472 100644 --- a/packages/neuron-wallet/src/channel/terminal.ts +++ b/packages/neuron-wallet/src/channel/terminal.ts @@ -2,7 +2,6 @@ import { ipcMain, WebContents, Notification } from 'electron' import { Channel } from '../utils/const' const methods: { [index: string]: Function } = { - getASWBalance: () => {}, notification: (args: string[]) => { return new Promise(resolve => { const notification = new Notification({ diff --git a/packages/neuron-wallet/src/channel/wallet.ts b/packages/neuron-wallet/src/channel/wallet.ts index d536056a13..7b5fee734c 100644 --- a/packages/neuron-wallet/src/channel/wallet.ts +++ b/packages/neuron-wallet/src/channel/wallet.ts @@ -24,7 +24,7 @@ export default class WalletChannel extends Listeners { public sendWallet = ( wallet: any = { - name: 'asw', + name: '', address: '', publicKey: '', }, diff --git a/packages/neuron-wallet/src/commands/commands.ts b/packages/neuron-wallet/src/commands/commands.ts index 248c546f91..48c493528e 100644 --- a/packages/neuron-wallet/src/commands/commands.ts +++ b/packages/neuron-wallet/src/commands/commands.ts @@ -1,7 +1,7 @@ // App commands, input from Menu or other places. // In many cases a command comes from the app shell and is sent to renderer process with channel. enum Command { - SendWallet = 'send-wallet', // default to asw for now + SendWallet = 'send-wallet', SyncWallets = 'sync-wallets', SyncNetworks = 'sync-network', SendTransactionHistory = 'send-transaction-history',