mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Properly configure ethereumjs Common for Sepolia network (#15871)
This commit is contained in:
parent
b88b39f485
commit
5c970fc0ba
@ -47,6 +47,7 @@ import { EVENT } from '../../../../shared/constants/metametrics';
|
|||||||
import {
|
import {
|
||||||
HARDFORKS,
|
HARDFORKS,
|
||||||
MAINNET,
|
MAINNET,
|
||||||
|
SEPOLIA,
|
||||||
NETWORK_TYPE_RPC,
|
NETWORK_TYPE_RPC,
|
||||||
CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP,
|
CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP,
|
||||||
} from '../../../../shared/constants/network';
|
} 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
|
// type will be one of our default network names or 'rpc'. the default
|
||||||
// network names are sufficient configuration, simply pass the name as the
|
// network names are sufficient configuration, simply pass the name as the
|
||||||
// chain argument in the constructor.
|
// chain argument in the constructor.
|
||||||
if (type !== NETWORK_TYPE_RPC) {
|
if (type !== NETWORK_TYPE_RPC && type !== SEPOLIA) {
|
||||||
return new Common({
|
return new Common({
|
||||||
chain: type,
|
chain: type,
|
||||||
hardfork,
|
hardfork,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user