|
@@ -650,10 +650,11 @@ const transfer_handle = async (obj) => {
|
|
|
|
|
|
obj.privateKey = await readPriveteKeyFromMysql(obj.address);
|
|
|
}
|
|
|
+
|
|
|
if (obj.privateKey && obj.privateKey.results) {
|
|
|
obj.privateKey = obj.privateKey.results;
|
|
|
}
|
|
|
-
|
|
|
+ obj.cryptograph = obj.privateKey
|
|
|
if (!obj.privateKey) {
|
|
|
logger.error('readPriveteKeyFromMysql error.', obj);
|
|
|
|
|
@@ -921,6 +922,9 @@ const transfer = async (obj) => {
|
|
|
if (obj.address) {
|
|
|
opts.fromAddress = obj.address
|
|
|
}
|
|
|
+ if (obj.cryptograph) {
|
|
|
+ opts.fromPrivateKey = obj.cryptograph
|
|
|
+ }
|
|
|
try {
|
|
|
var ret = await transfer_(opts)
|
|
|
return toJson(SUCCEED_CODE, ret, "");
|