1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

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

This commit is contained in:
Jyoti Puri 2022-02-22 11:28:04 +05:30 committed by GitHub
parent 0145041d0b
commit 60aa69a624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);