Confirm transaction page: use method name only for contract transactions (#13643)

feature/default_network_editable
Jyoti Puri 3 years ago committed by GitHub
parent 0145041d0b
commit 60aa69a624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      ui/pages/confirm-transaction-base/confirm-transaction-base.component.js

@ -1035,7 +1035,14 @@ export default class ConfirmTransactionBase extends Component {
return userAcknowledgedGasMissing ? false : !valid;
};
let functionType = getMethodName(name);
let functionType;
if (
txData.type === TRANSACTION_TYPES.DEPLOY_CONTRACT ||
txData.type === TRANSACTION_TYPES.CONTRACT_INTERACTION
) {
functionType = getMethodName(name);
}
if (!functionType) {
if (type) {
functionType = getTransactionTypeTitle(t, type, nativeCurrency);

Loading…
Cancel
Save