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

Merge branch 'master' into Version-v11.0.0

This commit is contained in:
Frederik Bolding 2023-08-23 15:56:57 +02:00 committed by GitHub
commit ad6f7aa563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 3 deletions

View File

@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [10.35.0] ## [10.35.0]
### Added ### Added
- Add the ability to customize tx nonce on ERC20 approval screens ([#17945](https://github.com/MetaMask/metamask-extension/pull/17945)) - Add the ability to customize tx nonce on ERC20 approval screens ([#17945](https://github.com/MetaMask/metamask-extension/pull/17945))
- Improved gas estimates on Base network ([#20097](https://github.com/MetaMask/metamask-extension/pull/20097))
### Changed ### Changed
- Update the "Spending Cap Request" screen (also known as the "ERC 20 approval" or "token allowance" screen) ([#19666](https://github.com/MetaMask/metamask-extension/pull/19666)) - Update the "Spending Cap Request" screen (also known as the "ERC 20 approval" or "token allowance" screen) ([#19666](https://github.com/MetaMask/metamask-extension/pull/19666))

View File

@ -138,6 +138,8 @@ export const CHAIN_IDS = {
BSC_TESTNET: '0x61', BSC_TESTNET: '0x61',
OPTIMISM: '0xa', OPTIMISM: '0xa',
OPTIMISM_TESTNET: '0x1a4', OPTIMISM_TESTNET: '0x1a4',
BASE: '0x2105',
BASE_TESTNET: '0x14a33',
POLYGON: '0x89', POLYGON: '0x89',
POLYGON_TESTNET: '0x13881', POLYGON_TESTNET: '0x13881',
AVALANCHE: '0xa86a', AVALANCHE: '0xa86a',
@ -542,6 +544,8 @@ export const BUYABLE_CHAINS_MAP: {
ChainId, ChainId,
| typeof CHAIN_IDS.LOCALHOST | typeof CHAIN_IDS.LOCALHOST
| typeof CHAIN_IDS.OPTIMISM_TESTNET | typeof CHAIN_IDS.OPTIMISM_TESTNET
| typeof CHAIN_IDS.BASE_TESTNET
| typeof CHAIN_IDS.BASE
| typeof CHAIN_IDS.BSC_TESTNET | typeof CHAIN_IDS.BSC_TESTNET
| typeof CHAIN_IDS.POLYGON_TESTNET | typeof CHAIN_IDS.POLYGON_TESTNET
| typeof CHAIN_IDS.AVALANCHE_TESTNET | typeof CHAIN_IDS.AVALANCHE_TESTNET

View File

@ -198,7 +198,7 @@ export function useTransactionDisplayData(transactionGroup) {
); );
const tokenDisplayValue = useTokenDisplayValue( const tokenDisplayValue = useTokenDisplayValue(
initialTransaction?.txParams?.data, primaryTransaction?.txParams?.data,
token, token,
isTokenCategory, isTokenCategory,
); );

View File

@ -1291,11 +1291,22 @@ export function getIsOptimism(state) {
); );
} }
export function getIsBase(state) {
return (
getCurrentChainId(state) === CHAIN_IDS.BASE ||
getCurrentChainId(state) === CHAIN_IDS.BASE_TESTNET
);
}
export function getIsOpStack(state) {
return getIsOptimism(state) || getIsBase(state);
}
export function getIsMultiLayerFeeNetwork(state) { export function getIsMultiLayerFeeNetwork(state) {
return getIsOptimism(state); return getIsOpStack(state);
} }
/** /**
* To retrieve the maxBaseFee and priotitFee teh user has set as default * To retrieve the maxBaseFee and priorityFee the user has set as default
* *
* @param {*} state * @param {*} state
* @returns Boolean * @returns Boolean