We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a6118c commit 49e2df3Copy full SHA for 49e2df3
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@haqq/rn-wallet-providers",
3
- "version": "0.0.5",
+ "version": "0.0.6",
4
"description": "React Native providers for Haqq wallet",
5
"main": "dist/index.js",
6
"types": "dist/index.d.ts",
src/providers/mnemonic/tron-provider.ts
@@ -15,6 +15,14 @@ export class ProviderMnemonicTron
15
extends ProviderMnemonicBase
16
implements ProviderInterface
17
18
+ async getAccountInfo(hdPath: string) {
19
+ const info = await super.getAccountInfo(hdPath.replace("44'", "195'"));
20
+ return {
21
+ ...info,
22
+ address: tron.utils.address.fromHex(info.address),
23
+ };
24
+ }
25
+
26
async signTransaction(
27
hdPath: string,
28
transaction: TransactionRequest,
0 commit comments