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:
parent
0145041d0b
commit
60aa69a624
@ -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…
Reference in New Issue
Block a user