mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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;
|
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 (!functionType) {
|
||||||
if (type) {
|
if (type) {
|
||||||
functionType = getTransactionTypeTitle(t, type, nativeCurrency);
|
functionType = getTransactionTypeTitle(t, type, nativeCurrency);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user