Files
evm/params/config_local_test.go
T
zeekay 162e4f6668 refactor: remove all SubnetEVM references and backward compatibility
- Rename plugin/evm/upgrade/subnetevm package to feewindow
- Rename SubnetEVMTimestamp to EVMTimestamp (JSON: evmTimestamp)
- Rename IsSubnetEVM method to IsEVM
- Rename SubnetEVMDefaultChainConfig to EVMDefaultChainConfig
- Rename TestSubnetEVMChainConfig to TestEVMChainConfig
- Rename TestPreSubnetEVMChainConfig to TestPreEVMChainConfig
- Rename ethclient/subnetevmclient to ethclient/evmclient
- Update VM factory ID from "subnetevm" to "evm"
- Remove all backward compatibility aliases
- Update all documentation and comments

Breaking change: This removes all SubnetEVM naming - only "EVM" is supported.
No backward compatibility maintained as per user requirement.
2025-12-21 10:26:52 -08:00

28 lines
811 B
Go

package params
import (
"math/big"
"testing"
)
func TestLocalNetworkChainID(t *testing.T) {
// Test that all test configurations use chain ID 1337 for local networks
testConfigs := map[string]*ChainConfig{
"TestChainConfig": TestChainConfig,
"TestPreEVMChainConfig": TestPreEVMChainConfig,
"TestEVMChainConfig": TestEVMChainConfig,
"TestDurangoChainConfig": TestDurangoChainConfig,
"TestEtnaChainConfig": TestEtnaChainConfig,
"TestFortunaChainConfig": TestFortunaChainConfig,
"TestGraniteChainConfig": TestGraniteChainConfig,
}
expectedChainID := big.NewInt(1337)
for name, config := range testConfigs {
if config.ChainID.Cmp(expectedChainID) != 0 {
t.Errorf("%s: expected chain ID %s, got %s", name, expectedChainID, config.ChainID)
}
}
}