Skip to content

Commit

Permalink
[CLI]Minor code improvement in CLI, remove ts-ignore-next-line (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb authored Sep 4, 2019
1 parent dfe34f4 commit 2f82c5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/commands/account/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export default class NewAccount extends BaseCommand {
if (!privateKey.startsWith('0x')) {
privateKey = '0x' + privateKey
}
// @ts-ignore-next-line
return new Web3.modules.Eth().accounts.privateKeyToAccount(privateKey).address
return new Web3().eth.accounts.privateKeyToAccount(privateKey).address
}

async run() {
Expand Down

0 comments on commit 2f82c5b

Please sign in to comment.