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

Properly configure ethereumjs Common for Sepolia network (#15871)

This commit is contained in:
Dan J Miller 2022-09-19 10:47:40 -02:30 committed by PeterYinusa
parent b88b39f485
commit 5c970fc0ba

View File

@ -47,6 +47,7 @@ import { EVENT } from '../../../../shared/constants/metametrics';
import {
HARDFORKS,
MAINNET,
SEPOLIA,
NETWORK_TYPE_RPC,
CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP,
} from '../../../../shared/constants/network';
@ -257,7 +258,7 @@ export default class TransactionController extends EventEmitter {
// type will be one of our default network names or 'rpc'. the default
// network names are sufficient configuration, simply pass the name as the
// chain argument in the constructor.
if (type !== NETWORK_TYPE_RPC) {
if (type !== NETWORK_TYPE_RPC && type !== SEPOLIA) {
return new Common({
chain: type,
hardfork,