Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2134 from kvhnuke/bugfix/tx-generation
Browse files Browse the repository at this point in the history
bugfix/tx-generation
  • Loading branch information
gamalielhere authored Nov 2, 2018
2 parents dcc38ac + d058758 commit a123c0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Devop

- Fixes gasPrice when generating offline. [#2134](https://github.com/kvhnuke/etherwallet/pull/2134)
- Update u2f-api [#2135](https://github.com/kvhnuke/etherwallet/pull/2135)

### Release v3.24.0
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/offlineTxCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var offlineTxCtrl = function($scope, $sce, walletService) {
ajaxReq.getTransactionData($scope.tx.from, function(data) {
if (data.error) throw data.msg;
data = data.data;
$scope.gasPriceDec = ethFuncs.hexToDecimal(ethFuncs.sanitizeHex(ethFuncs.addTinyMoreToGas(data.gasprice)));
$scope.gasPriceDec = $scope.gasPriceDef === "GWEI" ? etherUnits.toGwei(ethFuncs.hexToDecimal(ethFuncs.sanitizeHex(ethFuncs.addTinyMoreToGas(data.gasprice))), "wei") : ethFuncs.hexToDecimal(ethFuncs.sanitizeHex(ethFuncs.addTinyMoreToGas(data.gasprice)));
$scope.nonceDec = ethFuncs.hexToDecimal(data.nonce);
$scope.showWalletInfo = true;
});
Expand Down

0 comments on commit a123c0b

Please sign in to comment.