We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0baab65 + 84d2d2a commit 524483fCopy full SHA for 524483f
src/common/helpers/tronHelper.ts
@@ -81,9 +81,13 @@ const generateWalletFromMnemonic = (
81
const path = derivationPath || "m/44'/195'/0'/0/0";
82
const account = TronWeb.fromMnemonic(mnemonic, path);
83
84
+ const privateKey = account.privateKey.startsWith('0x')
85
+ ? account.privateKey.substring(2)
86
+ : account.privateKey;
87
+
88
return successResponse({
89
address: account.address,
- privateKey: account.privateKey,
90
+ privateKey: privateKey,
91
mnemonic: mnemonic,
92
});
93
};
0 commit comments