mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
- 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.
28 lines
811 B
Go
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)
|
|
}
|
|
}
|
|
}
|