Skip to content

Commit 69c5710

Browse files
author
iGroza
committed
fix: full tx to resp
1 parent 5852474 commit 69c5710

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@haqq/rn-wallet-providers",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "React Native providers for Haqq wallet",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/providers/hot/tron-provider.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class ProviderHotTron
5959

6060
const tronWeb = new tron.TronWeb({
6161
fullHost: this._tronWebHostUrl,
62-
privateKey,
62+
privateKey: privateKey.replace(/^0x/, ''),
6363
});
6464

6565
// Convert Ethereum-style transaction to Tron transaction
@@ -81,7 +81,7 @@ export class ProviderHotTron
8181
);
8282

8383
const signedTx = await tronWeb.trx.signTransaction(tx);
84-
resp = signedTx.signature[0];
84+
resp = JSON.stringify(signedTx);
8585

8686
this.emit('signTransaction', true);
8787
} catch (e) {

src/providers/mnemonic/tron-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class ProviderMnemonicTron
9494
);
9595

9696
const signedTx = await tronWeb.trx.signTransaction(tx);
97-
resp = signedTx.signature[0];
97+
resp = JSON.stringify(signedTx);
9898

9999
this.emit('signTransaction', true);
100100
} catch (e) {

src/providers/sss/tron-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class ProviderSSSTron
102102
);
103103

104104
const signedTx = await tronWeb.trx.signTransaction(tx);
105-
resp = signedTx.signature[0];
105+
resp = JSON.stringify(signedTx);
106106

107107
this.emit('signTransaction', true);
108108
} catch (e) {

0 commit comments

Comments
 (0)