@@ -29,7 +29,8 @@ class PrivateKey extends React.Component {
29 constructWallet(privateKey) {
29 constructWallet(privateKey) {
30 const { setWallet } = this.props
30 const { setWallet } = this.props
31 if (secre.test(privateKey) === true) {
31 if (secre.test(privateKey) === true) {
32+ const sec = Buffer.from(privateKey, 'hex')
32− const wallet = new EthereumWallet(privateKey)
33+ const wallet = new EthereumWallet(sec)
33 setWallet(Maybe.Just(wallet))
34 setWallet(Maybe.Just(wallet))
35 setWallet(Maybe.Nothing())
36 setWallet(Maybe.Nothing())