From 1bdff42b2827e850e51b3fd66687293b3fe78a4c Mon Sep 17 00:00:00 2001 From: Yongfeng LI Date: Tue, 23 Jan 2018 15:47:57 +0800 Subject: [PATCH] enable password in creating key --- src/features/mockhsm/components/New.jsx | 2 +- src/sdk/api/mockHsmKeys.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/features/mockhsm/components/New.jsx b/src/features/mockhsm/components/New.jsx index 9cfde21..4f3fe5e 100644 --- a/src/features/mockhsm/components/New.jsx +++ b/src/features/mockhsm/components/New.jsx @@ -61,7 +61,6 @@ class New extends React.Component { - {/**/}
} + ) diff --git a/src/sdk/api/mockHsmKeys.js b/src/sdk/api/mockHsmKeys.js index 5054b8d..0d16bf5 100644 --- a/src/sdk/api/mockHsmKeys.js +++ b/src/sdk/api/mockHsmKeys.js @@ -1,10 +1,9 @@ -const uuid = require('uuid') const shared = require('../shared') const mockHsmKeysAPI = (client) => { return { create: (params, cb) => { - let body = Object.assign({ clientToken: uuid.v4() }, params, {password: '123456'}) + let body = Object.assign({}, params) const uri = body.xprv ? '/import-private-key' : '/create-key' return shared.tryCallback( -- 2.11.0