@ledgerhq/live-common 28.0.0 → 28.0.1-hotfix.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/api/Tron.js CHANGED
@@ -181,7 +181,7 @@ var createTronTransaction = function (a, t, subAccount) { return __awaiter(void
181
181
  if (!(tokenType === "trc20" && tokenId)) return [3 /*break*/, 2];
182
182
  txData = {
183
183
  function_selector: "transfer(address,uint256)",
184
- fee_limit: 20000000,
184
+ fee_limit: 30000000,
185
185
  call_value: 0,
186
186
  contract_address: (0, utils_1.decode58Check)(tokenId),
187
187
  parameter: (0, utils_1.abiEncodeTrc20Transfer)((0, utils_1.decode58Check)(t.recipient), t.amount),
@@ -677,7 +677,7 @@ var getTransactionStatus = function (a, t) { return __awaiter(void 0, void 0, vo
677
677
  energy = (a.tronResources && a.tronResources.energy) || new bignumber_js_1.BigNumber(0);
678
678
  if (!(account.type === "TokenAccount" &&
679
679
  account.token.tokenType === "trc20" &&
680
- energy.lt(29650)) // temporary value corresponding to usdt trc20 energy
680
+ energy.lt(47619)) // temporary value corresponding to usdt trc20 energy
681
681
  ) return [3 /*break*/, 16]; // temporary value corresponding to usdt trc20 energy
682
682
  return [4 /*yield*/, (0, Tron_1.getContractUserEnergyRatioConsumption)(account.token.contractAddress)];
683
683
  case 15:
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "@ledgerhq/live-common",
6
6
  "description": "Common ground for the Ledger Live apps",
7
- "version": "28.0.0",
7
+ "version": "28.0.1-hotfix.0",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/LedgerHQ/ledger-live.git"
package/src/api/Tron.ts CHANGED
@@ -119,7 +119,7 @@ export const createTronTransaction = async (
119
119
  if (tokenType === "trc20" && tokenId) {
120
120
  const txData: SmartContractTransactionData = {
121
121
  function_selector: "transfer(address,uint256)",
122
- fee_limit: 20000000,
122
+ fee_limit: 30000000,
123
123
  call_value: 0,
124
124
  contract_address: decode58Check(tokenId),
125
125
  parameter: abiEncodeTrc20Transfer(decode58Check(t.recipient), t.amount),
@@ -764,7 +764,7 @@ const getTransactionStatus = async (
764
764
  if (
765
765
  account.type === "TokenAccount" &&
766
766
  account.token.tokenType === "trc20" &&
767
- energy.lt(29650) // temporary value corresponding to usdt trc20 energy
767
+ energy.lt(47619) // temporary value corresponding to usdt trc20 energy
768
768
  ) {
769
769
  const contractUserEnergyConsumption =
770
770
  await getContractUserEnergyRatioConsumption(