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

Remove isEIP1559Account usage (#18064)

This commit is contained in:
David Walsh 2023-03-28 09:50:02 -05:00 committed by GitHub
parent d4f04815c2
commit 8cba64b993
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,10 +177,6 @@ export function getCurrentKeyring(state) {
return keyring; return keyring;
} }
export function isEIP1559Account() {
return true;
}
/** /**
* The function returns true if network and account details are fetched and * The function returns true if network and account details are fetched and
* both of them support EIP-1559. * both of them support EIP-1559.
@ -189,9 +185,7 @@ export function isEIP1559Account() {
*/ */
export function checkNetworkAndAccountSupports1559(state) { export function checkNetworkAndAccountSupports1559(state) {
const networkSupports1559 = isEIP1559Network(state); const networkSupports1559 = isEIP1559Network(state);
const accountSupports1559 = isEIP1559Account(state); return networkSupports1559;
return networkSupports1559 && accountSupports1559;
} }
/** /**
@ -202,9 +196,7 @@ export function checkNetworkAndAccountSupports1559(state) {
*/ */
export function checkNetworkOrAccountNotSupports1559(state) { export function checkNetworkOrAccountNotSupports1559(state) {
const networkNotSupports1559 = isNotEIP1559Network(state); const networkNotSupports1559 = isNotEIP1559Network(state);
const accountSupports1559 = isEIP1559Account(state); return networkNotSupports1559;
return networkNotSupports1559 || accountSupports1559 === false;
} }
/** /**