Skip to content

Commit

Permalink
check gas is recalculate on confirm screen
Browse files Browse the repository at this point in the history
  • Loading branch information
blackdevelopa committed Mar 2, 2023
1 parent ac01749 commit 23c13de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/Views/SendFlow/Amount/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,10 +695,14 @@ class Amount extends PureComponent {
}

if (selectedAsset.erc20) {
transactionObject.gas = undefined;
transactionObject.readableValue = value;
}

if (selectedAsset.isETH) transactionObject.to = transactionTo;
if (selectedAsset.isETH) {
transactionObject.gas = undefined;
transactionObject.to = transactionTo;
}

setTransactionObject(transactionObject);
};
Expand Down
1 change: 1 addition & 0 deletions app/reducers/transaction/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const transactionReducer = (state = initialState, action) => {
transaction: {
...state.transaction,
...getTxData(action.transaction),
gas: action.transaction.gas,
},
...txMeta,
};
Expand Down

0 comments on commit 23c13de

Please sign in to comment.