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

Commit

Permalink
Fixes the display issue when generating a tx
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Oct 31, 2018
1 parent e909046 commit c3f2e3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### New
- Fixes gasPrice when generating offline. []()

### Release v3.24.0

### New
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(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 c3f2e3f

Please sign in to comment.